Prints the ages when two people of the entered birth dates will have an appropriate age gap, given the "Half-Your-Age-Plus-7" Rule.
Usage
ages_firstok(birthdate1, birthdate2)
Arguments
- birthdate1
date, the date when person 1 was born, written as "YYYY-MM-DD"
- birthdate2
date, the date when person 2 was born, written as "YYYY-MM-DD"
Value
The ages that are the appropriate age range for the age entered
Examples
ages_firstok("1970-03-19", "2000-07-09")
#> Age of Older Person Age of Younger Person
#> 74.61602 44.30801
ages_firstok("1800-01-20", "1900-03-17")
#> Age of Older Person Age of Younger Person
#> 214.3012 114.1506