time variable .

Great. Please mark the solution for the benefit of those to follow.

For future similar date work, take a look at the lubridate package, which has a duration object that can make date calculations easier.

1 Like