How the calculation works
- Years, months, and days are derived from the calendar rather than by dividing total milliseconds, so month lengths and leap years are respected.
- Days are borrowed from the real length of the previous month (28, 29, 30, or 31 days) when needed.
- A 29 February birth date is observed on 1 March in non-leap years by the browser's own date handling.