How the day count works
The calculator subtracts one date from the other and divides by 86,400,000 milliseconds - the number of milliseconds in a day. The result is exclusive of the start date: from the 1st to the 3rd is 2 days, matching how most contracts and deadlines are counted.
Because only whole dates are used, daylight saving time cannot shift the result. Time zones, leap seconds and clock changes are all irrelevant when both ends are calendar dates.
Calendar days and business days
A calendar day count includes every day. A business day count excludes weekends and public holidays, which is why a '30 day' notice period can mean 30 calendar days or roughly 22 working days depending on the contract.
This tool reports calendar days. For working-day counts you need a holiday calendar for the relevant country, because public holidays differ even within a single country - Scotland and England do not share the same bank holidays.
Leap years, precisely
A year is a leap year if it is divisible by 4, unless it is divisible by 100, unless it is also divisible by 400. So 2024 and 2028 are leap years, 1900 was not, and 2000 was. That rule keeps the calendar within about one day of the solar year every 3,000 years.
The consequence for date maths: a span crossing a 29 February is one day longer than the same span in a common year. A 365-day count from 1 January lands on 1 January the next year in a common year, but on 31 December in a leap year.
| Period | Days | Notes |
|---|---|---|
| 1 week | 7 | Fixed |
| 1 month | 28 - 31 | Never assume 30 |
| 1 quarter | 90 - 92 | 3 calendar months |
| 1 common year | 365 | 52 weeks + 1 day |
| 1 leap year | 366 | 52 weeks + 2 days |
| 1 decade | 3,652 or 3,653 | 2 or 3 leap years |
Frequently asked questions
Does the calculator include the start date?
No. Counting from 1 March to 10 March returns 9 days, not 10. This is the standard convention for deadlines and legal notice periods, and it means a 'within 30 days' clause expires on day 30, not day 31.
How many days are in each month?
January 31, February 28 or 29, March 31, April 30, May 31, June 30, July 31, August 31, September 30, October 31, November 30, December 31. Never use 30 as a stand-in for a month in date arithmetic - the error compounds across longer spans.
Can I calculate business days or working days?
Not in this tool - it returns calendar days only. For working days you need to subtract weekends and the public holidays of the specific country, since holiday calendars differ by jurisdiction and change from year to year.
How do I count the days until a deadline?
Enter today as the start date and the deadline as the end date. The result is the number of full days remaining, which is what 'days left' means on a countdown. Add one if you want to include the deadline day itself.
Why is my age in days different from another calculator?
Usually a difference in whether the birth date is included, or in how leap days are handled. A 30-year-old has lived roughly 10,957 days; a gap of one or two days almost always comes from an inclusive-versus-exclusive counting convention.
More free tools
Related guides
Related searches
date calculatordays between datesadd days to date