Convert a duration string to number of seconds
convert_to_seconds(time_string)
time_string
string like 1 day, 2 weeks, 12 hours, etc.
number of seconds