The Earth takes about 365.2422 days to go round the Sun, but a calendar year has 365 days. After 100 years the gap is 0.2422 × 100 = 24.22 days, and the seasons would drift away from the months.
Fix 1: leap year every 4 years (one extra day, 29 February). 4 years = 4 × 365 + 1 = 1461 days, close to 4 × 365.2422 = 1460.9688. In 100 years: 100 × 365 + 100/4 = 36525 days, but the Earth needs 100 × 365.2422 = 36524.22. Too many!
Fix 2: no leap day in years divisible by 100. Then 100 years have 24 leap years: 24 × 366 + 76 × 365 = 36524 days. In 1000 years: 365240 days, but the Earth needs 365242.2, a gap of 2.2 days.
Fix 3: years divisible by 400 are leap years after all. In 1000 years: 2 such years, 8 century years that are not leap years, 240 other leap years and 750 ordinary years:
750 × 365 + 240 × 366 + 8 × 365 + 2 × 366 = 365242 days, only 0.2 days short of 365242.2.
Try: with this scheme, 10000 calendar years have 3652425 days, while the Earth needs 3652422: the calendar is now 3 days ahead.
Tap the diagram to enlarge it
- Year ≈ 365.2422 days
- Every 4 years, except centuries
- Centuries divisible by 400 are leap years