Here is an example dataset:
df <- data.frame(duration = c("1 hour", "2 hours", "1 day", "3 h", "5 months"