Calculating someone's age sounds trivial—until you must account for varying month lengths (28, 30, or 31 days) and the mathematical rules governing leap years. In legal eligibility verification, immigration visa filings, and clinical trial enrollment, computing exact chronological age down to days and hours is essential.
The Gregorian Leap Year Algorithm
Under the Gregorian calendar introduced by Pope Gregory XIII in 1582, a year is a leap year if:
- The year is evenly divisible by 4;
- Except if it is also divisible by 100, it is NOT a leap year;
- Unless it is also divisible by 400, in which case it IS a leap year!
Thus, the year 2000 was a leap year, 1900 was not, and 2400 will be.
Find your exact age in years, months, days, and seconds with our Age Calculator.