How to Count Days Between Dates (Without the Off-by-One Error)
Ask three people how many days there are between 1 November and 10 November and you may get two different answers: 9 or 10. Neither person has made an arithmetic mistake. One counted the gap between the dates, the other counted the dates themselves, including both ends. That single difference — inclusive versus exclusive counting — is behind almost every days-between-dates argument, missed deadline, and short hotel stay I have ever seen.
This guide settles it. First, the one question to ask before you count anything. Then five worked examples, done slowly, for the situations where the answer actually matters: a notice period, a contract deadline, a trip countdown, a project measured in business days, and an anniversary. Finally, the three traps that break naive counting: uneven months, leap years, and the difference between calendar days and business days. At the end you can check any pair of dates with our free Date Difference Calculator, which shows both counts side by side so you never have to guess which one you are looking at.
The one question: are you counting the gap or the days?
Exclusive counting measures the gap: how many midnights pass between the start date and the end date. From 1 November to 10 November, 9 midnights pass, so the answer is 9 days. This is the number you want for durations: how long until something happens, how many days a project takes, how many nights a hotel stay covers. A hotel stay from 1 November to 10 November is 9 nights, not 10, and the hotel will charge you for 9.
Inclusive counting measures the days themselves, including both endpoints. From 1 November to 10 November inclusive, you touch 10 calendar dates, so the answer is 10 days. This is the number you want when the question is really how many days you are involved: a 10-day trip that starts on the 1st and ends on the 10th, a course that runs Monday to Friday inclusive (5 days, not 4), or a festival that runs over a long weekend.
The two answers always differ by exactly one. So whenever a calculator, a colleague, or a contract gives you a number that is one more or one less than yours, do not redo the arithmetic — check which convention they used. Our Date Difference Calculator prints both figures for every pair of dates, labelled, so the disagreement disappears: total days for the gap, and inclusive days for the count of dates touched.
One warning that matters for deadlines: a notice period or a contract term is a legal question, not just a maths question, and this guide is not legal advice. Wording like within 30 days of a date, 30 days notice, and 30 days including the start date can all mean different things, and the safe move is to read the contract, confirm the convention in writing, and then count. What this guide gives you is the counting itself, done correctly, once you know which convention applies.
5 worked examples, step by step
Example 1: A 30-day notice period
Problem: you hand in your notice on 10 March 2026, and your contract requires 30 days notice. What is your last day? Step 1 — decide the convention. A notice period is a duration, so count the gap: 30 days after 10 March. Step 2 — walk forward through the months. March has 31 days, so 21 days take you to 31 March, and the remaining 9 days take you to 9 April. Answer: 30 days after 10 March is 9 April 2026. If instead your contract counts the day you hand in notice as day 1, the 30th day is 8 April — one day earlier. That is exactly the inclusive/exclusive gap, and it is why you confirm the wording before you book anything around your last day. Check it with the calculator: put 10 March 2026 and 9 April 2026 in, and it returns 30 days, 31 inclusive.
Example 2: A 90-day contract deadline
Problem: a contract signed on 15 January 2026 must be completed within 90 days. What is the deadline? Step 1 — count forward, month by month, because the months are uneven. January has 31 days, so 16 days take you to 31 January. Step 2 — February 2026 is not a leap year, so 28 more days take you to 28 February; that is 44 days used. Step 3 — March has 31 days, taking you to 31 March at 75 days. Step 4 — 15 more days take you to 15 April. Answer: the deadline is 15 April 2026, exactly 90 days after 15 January. The trap here is assuming every month is 30 days: 90 days is not three months, and 15 January plus three calendar months would be 15 April only by luck of the months involved. Count days, not months, when the contract says days.
Example 3: A trip countdown
Problem: you leave on 20 December 2025 and come home on 5 January 2026. How long is the trip? Step 1 — the gap: December has 31 days, so 11 days take you to 31 December, and 5 more take you to 5 January. Answer: 16 days between the two dates. Step 2 — the inclusive count: if you count both travel days as trip days, add one, giving 17 days. Both numbers are correct answers to different questions. 16 days is how long you are away; 17 is how many calendar dates the trip touches. When you tell someone the trip is 17 days, you are counting both travel days; when a hotel charges you, it charges the gap. Say which one you mean and the confusion goes away.
Example 4: A project in business days
Problem: work starts on Monday 2 November 2026 and must be delivered by Friday 13 November 2026. How many working days is that? Step 1 — the calendar gap is 11 days. Step 2 — count the weekdays from the start date up to, but not including, the end date: the first week gives Monday to Friday, 5 days (2 to 6 November), and the second week gives Monday to Thursday, 4 days (9 to 12 November). Answer: 9 business days. The calculator uses exactly this convention and says so on the result, because business-day counting has its own off-by-one trap: if you count the delivery Friday as a working day as well, you get 10, and you have promised a day of work that does not exist. Note also that business days here mean Monday to Friday only — public holidays are not excluded, because no single holiday calendar fits every country. If your period spans a public holiday, subtract those days yourself.
Example 5: An anniversary in years and days
Problem: a couple married on 14 June 2019 wants to know how long they have been married on 14 June 2026. Step 1 — the calendar answer is exactly 7 years, because the month and day match. Step 2 — the day count is 2,557 days. That number is not 7 times 365 (which would be 2,555), because the period contains two leap days: 29 February 2020 and 29 February 2024. Answer: 7 years, or 2,557 days. This is the case where a days count and a years count tell different stories, and both are useful: years for the anniversary card, days for the milestone post. If you only need the years and months, our Age Calculator gives the same calendar breakdown for any birthdate or start date, and I explained that calculation in my guide to calculating age.
Why months and leap years break naive counting
Three habits cause most errors. The first is treating every month as 30 days. Months are 28, 29, 30, or 31 days, and a deadline counted as three months from 15 January is not the same as 90 days from 15 January — the example above landed on the same date only because January, February, and March happen to add up that way in 2026. In general, never convert between months and days by multiplying by 30; walk the calendar month by month, or use a calculator that does.
The second habit is forgetting leap years. 2024 was a leap year, so 28 February 2024 to 1 March 2024 is 2 days, with 29 February in between. In 2023, which was not a leap year, the same two dates are 1 day apart. Any calculation that crosses late February must check whether the year is a leap year — divisible by 4, except centuries, unless divisible by 400 — or it will be wrong by exactly one day, which is the hardest kind of wrong to notice.
The third habit is counting hours instead of dates. A calendar day is one date on the calendar, even across a daylight-saving change, when a day can be 23 or 25 hours long. If you subtract two timestamps and divide by 24 hours, a spring-forward weekend can give you an answer that is off by a day. Date-difference tools avoid this by counting calendar dates, not hours — the calculator on this site does its maths on whole calendar days for exactly this reason — and you should do the same: count dates, not hours, when the question is about dates.
Three mistakes to check before you trust an answer
- Off by one: if your answer differs from someone else's by exactly one, you are almost certainly looking at inclusive vs exclusive counting, not an arithmetic error. State the convention and the disagreement vanishes.
- Month-length slip: if your calculation assumed 30-day months, redo it month by month. February and the 31-day months are where these errors hide.
- Business days vs calendar days: a deadline in business days is shorter in calendar terms than the same number in calendar days, and public holidays are usually not included in a business-day count unless the contract says so. Confirm both before you commit.
A final practical point: reversed dates are fine, and the calculator handles them — if the end date is before the start date, it reports the size of the gap and tells you the direction. What it cannot do is tell you which convention your contract, employer, or airline uses. When the answer has consequences — a last working day, a visa deadline, a payment date — confirm the convention in writing, then let the calculator do the counting.
Quick answers to common questions
How many days are there between 1 November and 10 November?
9 days if you count the gap between the dates, 10 days if you count both dates themselves. The gap is the answer for durations and hotel nights; the inclusive count is the answer for how many calendar dates a trip or course touches.
What is the difference between calendar days and business days?
Calendar days include every date, weekends included. Business days count Monday to Friday only. From Monday 2 November 2026 to Friday 13 November 2026 there are 11 calendar days but 9 business days, counting weekdays from the start date up to, but not including, the end date. Public holidays are not automatically excluded from a business-day count.
Do leap years change a days-between-dates answer?
Yes, by one day, whenever the period includes 29 February. From 28 February to 1 March is 2 days in a leap year like 2024 and 1 day in a non-leap year like 2023. Always check whether a leap day falls inside your period.
Why does my answer differ from an online calculator by one day?
Almost always because of inclusive vs exclusive counting. One of you counted both endpoints, the other counted only the gap. The difference is exactly one, every time — check which convention each side used before redoing any maths.
How do I count days between dates across a daylight-saving change?
Count calendar dates, not hours. A day that is 23 or 25 hours long because of a clock change is still one calendar date. Subtracting timestamps and dividing by 24 hours can give an answer that is off by a day; counting dates cannot.