1. Home
  2. Calculators
  3. How many days between two dates?
Counting days

How many days are between two dates?

Subtract the earlier date from the later one. The only real question is whether you count the last day too.

Inclusive or exclusive?

From 1 March to 5 March is 4 days if you count the gaps (5 − 1) and 5 days if you count every date on the calendar, including both ends. A countdown ("4 days until") uses the first. A booking for an event that runs 1 to 5 March uses the second. Hotels count nights, which is the first. When a contract says "within 30 days", the rule for whether the first day counts is set by that contract or local law, so read it.

Counting by hand

Within one month, subtract the day numbers. Across months, count the days left in the first month, add full months, then add the days into the last month.

Example: 18 April to 9 July.

  • Days left in April after the 18th: 30 − 18 = 12
  • May: 31, June: 30
  • Days into July: 9

12 + 31 + 30 + 9 = 82 days (exclusive of the start date). Add 1 if both ends should count.

Month lengths: 31 days in January, March, May, July, August, October and December; 30 in April, June, September and November; February has 28, or 29 in a leap year. The knuckle trick helps: knuckles are 31-day months, gaps are shorter months.

Leap years

A year is a leap year if it's divisible by 4, except century years, which must be divisible by 400. So 2024 and 2028 are leap years, 2100 won't be, and 2000 was. Any range that crosses 29 February in a leap year has one extra day.

Business days

To count working days (Monday to Friday), count full weeks and multiply by 5, then add the weekdays in the leftover days. Then subtract any public holidays that apply to you. The date calculator does the weekday counting automatically and leaves holidays to you, because they differ by country and employer.

In a spreadsheet

  • Days between: =B2 - A2 (format the cell as a number)
  • Including both ends: =B2 - A2 + 1
  • Business days: =NETWORKDAYS(A2, B2), which counts both ends and can take a list of holidays as a third argument
  • A date 90 days later: =A2 + 90

Working out someone's age instead? See how to calculate age from a date of birth.

Worked examples

  • A whole year: 1 January 2026 to 31 December 2026 is 364 days apart, or 365 counting both ends.
  • Countdown to a holiday: 15 November to 25 December 2026. Days left in November after the 15th: 30 − 15 = 15. Days into December: 25. Total 40 days.
  • A leap February: 1 February to 1 March 2028 is 29 days, because 2028 is a leap year. The same dates in 2026 are 28 days apart.
  • 90 days from a date: start 10 January 2026. January has 21 days left (31 − 10), leaving 69. February uses 28, leaving 41. March uses 31, leaving 10. Answer: 10 April 2026.
  • Business days: Monday 2 November to Friday 27 November 2026 is four full Monday-to-Friday weeks, so 20 weekdays counting both ends. If Thanksgiving (Thursday 26 November 2026) is a day off, it's 19.

Quick reference: 30, 60, 90 and 180 days

Days after 1 January 2026Date
3031 January 2026
602 March 2026
901 April 2026
18030 June 2026
3651 January 2027

Notice that "90 days" and "3 months" are not the same thing. Three months after 1 January is 1 April here, but from 1 March three months is 1 June, which is 92 days.

Weeks, months and years between dates

For weeks, divide the day count by 7: 82 days is 11 weeks and 5 days. Months are awkward because they differ in length, so the usual approach is to count whole calendar months first (18 April to 18 June is 2 months) and then the leftover days (18 June to 9 July is 21 days). Years work the same way, with leap years handled automatically if you count calendar dates rather than multiplying by 365.

Common mistakes

  • The off-by-one error. Decide up front whether both ends count. Hotel nights and countdowns don't count the start; event days and many leave policies count both.
  • Assuming 30-day months. Across a year that's off by about five days.
  • Forgetting 29 February in ranges that cross a leap day.
  • Timestamps and daylight saving. If you subtract two date-times in code, a clock change can make a "day" 23 or 25 hours long, so dividing by 24 hours can round the wrong way. Compare calendar dates instead, as the date calculator does.
  • A date showing instead of a number in Excel. If =B2−A2 shows a date, change the cell format to Number.

Frequently asked questions

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

Subtract the earlier date from the later date. Add 1 if you want to count both the start and end days.

How many days is it from today to a date?

Enter today and the target date in the date calculator; it updates instantly.

How do I count working days between two dates?

Count weekdays only, then subtract public holidays. In Excel, NETWORKDAYS does this.

Is 2028 a leap year?

Yes. It's divisible by 4 and isn't a century year.

How many days are in a year?

365 in a common year and 366 in a leap year.

What date is 90 days from today?

Add the days month by month, or use the add-days mode of the date calculator. 90 days after 10 January 2026 is 10 April 2026.

How many weeks are between two dates?

Divide the number of days by 7. The remainder is the leftover days.

Keep reading

Related tools

See everything in Calculators →