How to Calculate Days Between Two Dates — and the Off-by-One Traps That Catch Everyone

November 2, 2026 · by admin · Guides

Wall calendar and calculator on a desk marking a deadline — how to calculate days between two dates.

You have two dates and one question: how many days are there between them? It sounds like the simplest calculation in the world, and it is — until the answer matters. A notice period, a visa stay, an invoice deadline, a holiday countdown: get the count wrong by one day and a plan quietly breaks. The question behind all of them is how to calculate days between two dates, and the short answer is subtraction — end date minus start date. Take the example from our own tool page: 1 January 2027 to 1 March 2027. January has 31 days and February 2027 (not a leap year) has 28, so 31 + 28 = 59 days, which is 8 weeks and 3 days. This guide walks through that subtraction, the business-day version of it, the leap-year trap, and the off-by-one mistakes that catch almost everyone at least once.

Key takeaways:

How to Calculate Days Between Two Dates in Plain English

The method is one subtraction. Write the later date down, write the earlier date down, and find the distance between them in days. Our free Date Calculator does it instantly, but the method is worth knowing by hand, because every step after it — weeks, business days, deadlines — depends on getting this number right.

Run the headline example through it. From 1 January 2027 to 1 March 2027: January contributes 31 days and February 2027 contributes 28, giving 59 days in total. To turn days into weeks, divide by seven: 59 ÷ 7 = 8 weeks with 3 days left over, so 8 weeks and 3 days. The same subtraction works for any pair of dates, in either order — the calculator does not mind which date you enter first, because the distance between two dates is the same whichever way you walk it. And if the two dates are really a birthday and today, the same subtraction is what our Age Calculator does when it works out an exact age in years, months and days.

The Off-by-One Mistake Everyone Makes

Here is where most day counts go wrong: counting both endpoints. From 1 January to 2 January is 1 day, not 2 — the difference between the dates is one step on the calendar, even though two dates are named. From 1 January to 10 January the difference is 9 days, but counting both endpoints gives 10. Both numbers feel right, and only one of them matches how deadlines, notice periods and stays are actually measured.

The hotel test makes the distinction obvious. A 14-night stay is 14 days of accommodation, but it touches 15 calendar dates — the arrival date plus fourteen mornings after it. Nobody charges for 15 nights, because the count is the distance, not the list of dates. The same logic applies to “in 10 days” from Friday 6 November 2026: add 10 days and you land on Monday 16 November 2026, not on the tenth date you can name after the 6th. Whenever a count looks one day too long, check whether both endpoints got counted. That single check fixes more date arguments than any other.

How Can You Calculate the Number of Days Between Two Dates in Excel?

In a spreadsheet the method is the same subtraction, written as a formula. Put the earlier date in one cell and the later date in another, then subtract: end date minus start date. With 1 January 2027 in cell A1 and 1 March 2027 in cell B1, the formula =B1-A1 gives 59 — provided the result cell is formatted as a number, not as a date, or Excel will show you a date in January 1900 instead of a day count. The DATEDIF function does the same job in words: =DATEDIF(A1,B1,”D”) also gives 59.

Business days need a different function, and here the off-by-one trap returns in spreadsheet form. Excel’s NETWORKDAYS counts both endpoints, so =NETWORKDAYS(A1,B1) for 1 January to 1 March 2027 gives 42, not the 41 business days our calculator gives — because the calculator excludes the start day and includes the end day, while NETWORKDAYS includes both. Neither answer is wrong; they are answers to slightly different questions. If a spreadsheet and a calculator disagree by exactly one day, check the endpoint convention before you assume either one is broken.

Business Days vs Calendar Days: The Deadline Difference

Calendar days count everything. Business days count only Monday to Friday — and, on this calculator, with one convention that matters: the start day is excluded, but the end day is included if it is a weekday. That matches how most employers and contracts count notice periods and deadlines, where counting starts the day after the triggering date.

Take the headline example again. The 59 days from 1 January 2027 to 1 March 2027 break down into 41 business days and 18 weekend days — and 41 + 18 = 59, which is a useful check on any count you do by hand. Now see how far apart the two counts can drift. Ten business days after Saturday 2 January 2027 lands on Friday 16 January 2027 — a calendar span of 14 days, because two weekends hide inside it. And ten calendar days from Friday 6 November 2026 lands on Monday 16 November 2026, but contains only 6 business days. A deadline quoted in business days always stretches further on the calendar than the same number in calendar days, and quoting the wrong one is how a “ten-day” promise becomes a fortnight. Run the count through the Date Calculator in Days Between Dates mode, and check which kind of day your deadline actually means before you commit to it.

Adding and Subtracting Days for Deadlines

Sometimes the question runs the other way: not “how many days between these dates?” but “what date is a set number of days away?” That is the calculator’s Add / Subtract Days mode, and it is the one deadlines, payment terms and countdowns live in. The method is just as short: start from a date, step forward or backward by the number of days, and read off the landing date — including its weekday, which is often the part that actually matters.

Work the tool page’s own examples. What date is 100 days after 21 October 2026? Adding 100 days lands on Friday 29 January 2027 — which is 14 weeks and 2 days later, and a Friday, which matters if the deadline needs a working day. A “four weeks’ notice” period from 1 January 2027 is 28 calendar days, landing on Friday 29 January 2027 as well. An invoice dated 1 March 2027 on 30 days net falls due on 31 March 2027. A six-week project sprint starting 1 January 2027 runs 42 days to 12 February 2027. And 30 days from 15 February 2027 lands on 17 March 2027. Subtracting works the same way: 90 days before 19 January 2027 is 21 October 2026, which is how you work backward from a fixed deadline to the date you must start.

Situation Typical count Worked example
Schengen / visa short stay 90 days in any 180 21 Oct 2026 + 90 days = 19 Jan 2027
Invoice payment terms 30 days net Invoice 1 Mar 2027 → due 31 Mar 2027
Six-week project sprint 42 days 1 Jan 2027 + 42 days = 12 Feb 2027
Four weeks’ notice 28 calendar days 1 Jan 2027 + 28 days = 29 Jan 2027
Countdown to Christmas Varies by start date 21 Oct 2026 → 25 Dec 2026 = 65 days

How Do I Calculate Months?

Months are counted on the calendar, not by dividing days by 30 — and that distinction matters, because calendar months are not equal. Three calendar months from 21 October 2026 is 21 January 2027, a span of 92 days. Three calendar months from 1 January 2026 is 1 April 2026, a span of 90 days. Both are “three months”, but they differ by two days, which is exactly why a deadline expressed in months and a deadline expressed in days can land on different dates.

The rule is simple: to add months, keep the same day number in the target month (21 October plus three months is 21 January), and to count the days, subtract the dates. Never convert months to days by multiplying by 30 unless a rough estimate is all you need — a “90-day” period is about three months, but it is not three calendar months, and a “three-month” notice period is not 90 days. When a contract, visa rule or notice period says months, count months; when it says days, count days; and when it says both, work out which one governs before you commit.

Leap Years and the February Trap

February is where hand-counted dates most often break, because its length changes. In a leap year February has 29 days; in other years it has 28. The rule for leap years is simple in practice: years divisible by four are leap years, 2028 included, and the calculator handles them automatically, so a range that includes 29 February counts that extra day like any other.

See it in action. From 28 February 2028 to 1 March 2028 is 2 days, not 1 — because 29 February 2028 sits between them and counts. A full February-to-March step in a leap year, 1 February 2028 to 1 March 2028, is 29 days, not 28. In a non-leap year the same step is 28: that is exactly why the headline example, 1 January 2027 to 1 March 2027, is 31 + 28 = 59 days rather than 60. The “every month has 30 days” shortcut is the other February trap — it is fine for rough estimates and wrong for real deadlines, because real months have 28, 29, 30 or 31 days, and a deadline built on pretend months will land on the wrong weekday. If your range crosses February, count the real month lengths or let the Date Calculator do it.

Counting Down: Holidays, Bookings and Leave

Countdowns are where day counting stops being arithmetic and starts being planning. From 21 October 2026 to Christmas Day, 25 December 2026, is 65 days — 9 weeks and 2 days — which is the number that decides whether a plan is comfortable or a rush. The 90-day short-stay rule is the same kind of count with higher stakes: 21 October 2026 plus 90 days is 19 January 2027, and 90 days is about a quarter of a year (90 ÷ 365 = 24.7%), which the Percentage Calculator will confirm if you want the exact share. Visa rules count calendar days, not business days, and they count them strictly — one day over is over, which is why the off-by-one section of this guide matters more here than anywhere else.

Leave works the same way, but in business days. Two weeks off starting Monday 13 July 2026 is 14 calendar days, landing on Monday 27 July 2026, and it contains 10 business days — the two weekends inside it are not leave, but they are not working days either. A shorter break shows the counting convention clearly: Monday 13 July 2026 to Friday 24 July 2026 is 11 days by difference, 12 dates inclusive, and 9 business days (the start Monday excluded, the end Friday included). Book the leave in calendar days, count the cover you need in business days, and check the result against the Date Calculator before you submit the request — a miscounted return date is an avoidable conversation with your manager.

How Do I Calculate the Number of Weeks Between Two Dates?

Divide the day count by seven: the whole number is the weeks, and the remainder is the extra days. The headline example, 59 days, is 59 ÷ 7 = 8 weeks with 3 days left over — 8 weeks and 3 days. The Christmas countdown, 65 days, is 9 weeks and 2 days. A 100-day deadline is 14 weeks and 2 days. The weeks figure is the day count restated, not a different calculation, so it inherits whatever convention the day count used — get the day count right first, and the weeks follow.

Weeks are the right unit for planning horizons — a six-week sprint, a twelve-week project, a pregnancy counted in weeks — but they are the wrong unit for acting on a deadline. “In eight weeks” does not tell you the weekday, and a deadline that lands on a Saturday is a deadline you will miss. Always convert back to the exact date and check its weekday before you commit, and let the calculator show you both: the weeks for the plan, and the date for the diary.

A Day-Counting Checklist Before You Trust the Number

Run through these checks before you act on a day count, and it will hold up. First, confirm which convention you are counting: difference or inclusive — and use the difference for deadlines, stays and notice periods. Second, confirm which kind of day you mean: calendar days or business days, because a business-day deadline stretches much further on the calendar. Third, if it is business days, remember the start day is excluded and the end day is included if it is a weekday — and that public holidays are not subtracted, so allow a day’s leeway near a bank holiday. Fourth, if the range crosses February, check whether it is a leap year rather than assuming 28 days. Fifth, check the weekday your count lands on: a deadline that lands on a Saturday is a deadline you will miss. Sixth, run the same count through the calculator as a second pair of eyes — a hand count and a tool count that agree are worth trusting.

Day counting is a small skill with an outsized effect: every deadline, booking, notice period and countdown in working life is one of these subtractions in disguise. Get the convention right once, and the rest is just arithmetic. And the convention is the whole lesson — the difference, not the list of dates, is the count.

Frequently Asked Questions

How do I calculate the number of days between two dates?

Subtract the earlier date from the later date: the difference is the day count. From 1 January 2027 to 1 March 2027, January contributes 31 days and February 2027 contributes 28, giving 59 days, which is 8 weeks and 3 days. Every calendar day counts, including weekends and 29 February in a leap year.

What counts as a business day?

A business day is a Monday-to-Friday day. On this calculator the start day is excluded but the end day is included if it is a weekday — the convention most employers and contracts use. The 59 days from 1 January 2027 to 1 March 2027 contain 41 business days and 18 weekend days. Public holidays are not subtracted, so check your local calendar near a deadline.

Does the count include the start and end dates?

The day count is the difference, so it includes neither endpoint twice: 1 January to 2 January is 1 day, and 1 January to 10 January is 9 days. Counting both endpoints gives 10 for the second example — one day too many, and the most common date-counting error. Deadlines, stays and notice periods use the difference.

How do leap years affect the count?

A leap year adds 29 February, and that day counts like any other. From 28 February 2028 to 1 March 2028 is 2 days, not 1, because 29 February 2028 sits between them. In a non-leap year such as 2027, February has 28 days, which is why 1 January 2027 to 1 March 2027 is 59 days, not 60.

How do I work out a date a set number of days away?

Start from your date and step forward or backward by the number of days. For example, 100 days after 21 October 2026 is Friday 29 January 2027. Use the calculator’s Add / Subtract Days mode for payment terms, notice periods, 90-day visa rules and countdowns — and check the weekday the result lands on, since a Saturday deadline is one you will miss.

Conclusion

Knowing how to calculate days between two dates is one subtraction done carefully: end date minus start date, every calendar day counted, business days counted by their own convention, February counted at its real length. Next time a deadline, a booking or a countdown depends on a number, run it through our free Date Calculator and check it against the list of dates by hand — and when the two agree, trust the count. The arithmetic was never the hard part; the convention was, and now you have it.

Try Our Free Calculators

Put this guide into practice with the tools our readers use most: