Calendar or duration rule
Leap years are divisible by 4, except century years unless divisible by 400.
1900 is not a leap year; 2000 is.
Worked check
Use century years as a quick rule check: 1900 is not a leap year because it is divisible by 100 but not 400, while 2000 is a leap year because it is divisible by 400.
Rule: Leap years are divisible by 4, except century years unless divisible by 400. 1900 is not a leap year; 2000 is. For a final check, distinguish calendar arithmetic from elapsed duration, confirm the intended local date or time zone, and inspect month-end, leap-year or daylight-saving boundaries when they can affect the meaning.