Gregorian leap-year rule
In the Gregorian calendar, years divisible by four are leap years. Century years get the extra day only if divisible by 400.
Example
2000 was a leap year and 1900 was a common year. The average across 400 years is 365.2425 days per year, useful for approximate conversions to days.
Read more
Source
U.S. Naval Observatory · Leap Years