Below are the birth dates and death dates of some people. How many days did they live in total?
R can easily calculate with dates. The lubridate package and the base functionality for dates are both fine.