To find the age in years and days I used LocalDate objects and used the DAYS.between(birthDate, deathDate); method by importing java.time.temporal.ChronoUnit.DAYS; and getting the total number of days between the two dates. I then took those total number of days and divided by 365 to get the years and mod by 365 to get the days. However it is a always a few days off due to leap years being 366 days. Did anyone find a way to get around this problem?