Years and months are counted the calendar way: from the 15th of one month to the 15th of the next is one month, whatever its length. The leftover days come last. Total days is the plain count of sunrises between the two dates.
Handy for birthdays, work anniversaries, warranty periods, and that argument about exactly how old the dog is.
Pure date math.