How it works
Type the year and the year to count up to. The page shows the days in the year, the days in February, the next leap year and how many leap years fall between the two years.
Formula
Days in the year = 366 in a leap year, 365 otherwise.
Leap years from a to b = the count up to b minus the count up to a-1, using quarters, centuries and four-centuries.
Sources
Example
Year: 2,026; Count up to year: 2,100. Days in the year: 365
Frequently asked questions
Why is 1900 not a leap year?
Century years skip the leap day unless they also divide by 400. So 1900 and 2100 are not leap years, but 2000 was.
Does this work for old dates?
It is the Gregorian rule. Countries adopted it at different times, so dates before 1583 may not match the calendar people used then.