"How many days until the deadline?" sounds like a question with one answer, yet two careful people can reach different numbers. One counts the start day, the other doesn't. One means calendar days, the other means working days. For notice periods, contract terms, leave balances, interest periods and project plans, that off-by-one difference can matter.
This guide explains how day counts work, when to include the end date, how to get the number of weekdays, and how to express a gap in years, months and days. It also covers the spreadsheet functions that do the same, so you can choose the right method for a one-off check or a whole list of dates.
Exclusive vs inclusive counting
The basic count is the number of midnights between two dates. From Monday to Wednesday is 2 days: Monday night and Tuesday night. This is the exclusive count, and it is what you get by subtracting one date from another.
Sometimes you need to count both the first and last day. A hotel stay from Monday to Wednesday is two nights, but a conference running Monday to Wednesday is three days. Leave applications, event durations and many "days of service" rules use the inclusive count, which is the exclusive count plus one.
| Situation | Usual convention |
|---|---|
| Days until a deadline or event | Exclusive |
| Nights in a hotel or rental | Exclusive |
| Days of leave, event days | Inclusive |
| Interest days on a deposit or loan | Depends on the lender's day-count rule |
| Legal notice periods | Set by the contract or law; read the wording |
When the rule matters, look for words such as "from and including" or "clear days" in the document you are working with.
A worked example
Start date 15 January 2026, end date 29 September 2026.
- Days remaining in January after the 15th: 16
- February 28, March 31, April 30, May 31, June 30, July 31, August 31: 212
- Days in September up to the 29th: 29
- Total: 16 + 212 + 29 = 257 days (exclusive), or 258 inclusive
In calendar terms, that is 8 months and 14 days: 15 January to 15 September is eight whole months, and 15 to 29 September is 14 more days.
Use the Date Difference Calculator
- Open the Date Difference Calculator.
- Enter the Start date and End date. The tool opens with 1 January of this year and today, so you can see the format straight away.
- Tick Include the end date (add 1 day) if you need an inclusive count.
- Click Set end date to today if you want to measure up to today.
- Read the Difference panel:
- Duration in years, months and days
- Total days
- Weeks + days
- Weekdays (Mon–Fri)
- Total hours and Total minutes
If the start date is later than the end date, the tool swaps them and tells you, so you always get a positive result. For the example above, it reports 257 total days, 36 weeks 5 days and 183 weekdays.
Counting weekdays
Working days are calendar days minus Saturdays and Sundays. A quick estimate is total days × 5/7, but the exact number depends on which weekday the period starts and ends on, so counting is more reliable.
Example: the last quarter of 2026, from 1 October to 31 December with the end date included, has 92 calendar days and 66 weekdays.
What the calculator does not know is your public holidays. These vary by country, state and employer, so subtract them yourself: if three holidays fall on weekdays in that quarter, you have 63 working days.
Doing it in a spreadsheet
| Need | Excel / Google Sheets formula |
|---|---|
| Days between dates (exclusive) | =B2-A2 (format as a number) |
| Inclusive count | =B2-A2+1 |
| Working days, with holidays | =NETWORKDAYS(A2, B2, H2:H20) |
| Custom weekends | =NETWORKDAYS.INTL(A2, B2, 7) (Friday-Saturday weekend) |
| Whole months | =DATEDIF(A2, B2, "M") |
Note that NETWORKDAYS counts both the start and end date, so its result matches the calculator with Include the end date ticked. Spreadsheets are the better choice when you have many date pairs or need to exclude a holiday list.
Pitfalls and how to avoid them
Month lengths make "months" ambiguous
"Three months from 31 January" has no exact answer because April has no 31st. Calculators and banks roll such dates to the last day of the month. If you are working to a contract, check how it defines a month.
Counting from the wrong day
For "30 days from the invoice date", decide whether day one is the invoice date or the day after. Most payment terms count the following day as day one, which is the same as the exclusive difference.
Time zones and daylight saving
The calculator works with whole calendar dates, so a daylight saving change inside the period does not add or remove a day. Total hours are shown as days × 24, which is what planners usually want. If you need exact elapsed clock time across a DST change or between time zones, use the Time Zone Converter for the individual timestamps.
Weekends are not the same everywhere
The weekday count treats Saturday and Sunday as the weekend. If your working week differs, use NETWORKDAYS.INTL in a spreadsheet.
Related tools
- Your exact age on any date: Age Calculator
- Adding or subtracting days from a date: Date Calculator
- Durations in hours, minutes and seconds: Time Duration Calculator
- A live countdown to an event: Countdown Timer
Frequently asked questions
How do I calculate the number of days between two dates?
Subtract the earlier date from the later one, which gives the exclusive count. Add one day if both the start and end dates should be counted.
Should I include the end date?
Include it when both days are "used", such as leave days or event days. Leave it out for countdowns, nights of stay and most payment terms.
How many weekdays are there between two dates?
Count the days that are not Saturday or Sunday. The calculator shows this as Weekdays (Mon–Fri); subtract any public holidays yourself.
Why does NETWORKDAYS give one more day than my count?
NETWORKDAYS includes both the start and end date. Tick Include the end date in the calculator to match it.
Can I enter the dates in any order?
Yes. If the start date is after the end date, the tool swaps them and shows a note.