pub fn parse_duration(text: &str) -> Result<u64, String>
15m, 1h30m, 500ms, 2d: a sum of whole numbers with units.
15m
1h30m
500ms
2d