Leap Years: The 400-Year Cycle
A year is not exactly 365 days — it is 365.2422 days. The Gregorian calendar compensates with a rule: add a leap day every 4 years, except every 100 years, except every 400 years (which isa leap year). So 1900 was not a leap year, but 2000 was. This gives an average year length of 365.2425 days, accurate to within 26 seconds per year. The drift accumulates to one day every 3,236 years — good enough that no correction has been needed since the calendar was introduced in 1582.