Days Between Two Dates

Calculate days between dates or add and subtract days from any date

Quick answer

Enter two dates in the Date Difference tab to instantly see the gap in total days, workdays (Mon-Fri), weeks, and a years-months-days breakdown. Switch to Add / Subtract to find the date that is a given number of days before or after any starting date. Both modes update instantly as you type - no button press needed.

Key takeaways
  • Most payment terms - Net 30, Net 60 - count calendar days, not workdays. A 30-day invoice issued on a Monday is due 30 calendar days later, regardless of weekends.
  • This calculator uses exclusive counting: January 1 to January 5 = 4 days, not 5. If your contract counts the start date as day 1 (inclusive), add 1 to the result.
  • "Add 1 month" and "add 30 days" are different operations. January 31 plus one calendar month = February 28 or 29 - not March 3.
  • Any date range crossing February of a leap year is 1 day longer than the same range in a non-leap year - relevant for multi-year contract durations and recurring payment calculations.
  • A standard calendar year holds 260-262 workdays, depending on how weekends align with January 1 and December 31. This variation matters for annual leave accrual calculations.

Days between dates calculation explained simply

Think of it like hotel nights. Check in on Monday, check out on Friday: you stayed 4 nights, not 5. The day you arrive is day 0; Friday is day 4. This tool uses that same logic, called exclusive counting.

Here's why it matters in practice. A contract clause that says "30 days from January 1" ends on January 31 under exclusive counting (January 1 = day 0, January 31 = day 30). But if the clause means January 1 is day 1, the deadline falls on February 1 - one day later.

One day of ambiguity can be the difference between meeting a legal or financial deadline and missing it. Always check whether your contract counts the start date as day 0 or day 1 before relying on a calculated date.

How to use our date to date calculator

Date Difference mode

Enter a start date and end date - the calculator accepts them in either order and always returns a positive result. Use the Today buttons to quickly anchor either date to the current date. The Swap button exchanges both dates without re-entering them.

Results show six values simultaneously: total days, weeks (with remaining days), workdays, a years-months-days breakdown, hours, and minutes.

Add / Subtract mode

Enter a start date, choose whether to add or subtract, and enter a number of days. The result shows the exact resulting date with its full weekday name, ISO week number, and how many days it is from today. This mode is useful for calculating deadlines ("30 days from contract signing"), expiry dates ("90 days from today"), and notice periods.

To find how many days until a future date or since a past date, use Date Difference with Today as one of the inputs.

Days between dates

The number of days between two dates is the count of calendar days from the earlier date to the later date, not counting the start date itself. This is called exclusive counting and is the standard mathematical convention:

  • January 1 to January 5 = 4 days (Jan 2, 3, 4, 5 - not counting Jan 1)
  • January 1 to February 1 = 31 days (all of January)
  • January 1 to December 31 in a non-leap year = 364 days

If you need inclusive counting (counting both the start and end date), add 1 to the result.

This matters in contexts like "how many days is a 3-day event running from Thursday to Saturday?" - the answer is 3 inclusive (Thu, Fri, Sat), which is 2 by exclusive counting.

Leap years

February has 29 days in a leap year and 28 in a non-leap year. A year is a leap year if divisible by 4, except century years (1900, 2100), which must also be divisible by 400 (2000 was a leap year; 1900 was not).

Any date range crossing February of a leap year is 1 day longer than the same range in a non-leap year. This calculator handles leap years automatically.

How old am I in days?

Enter your date of birth as the start date and today as the end date. The total days result is your exact age in days - a figure most people have never seen. It tends to be much larger than expected.

AgeApproximate days oldNote
10 years~3,652Includes 2-3 leap days
18 years~6,574Age of majority in most countries
25 years~9,131Approaching the 10,000-day milestone
30 years~10,95710,000 days falls at about age 27 years 4 months
40 years~14,610-
65 years~23,741Typical retirement age in many countries

The exact count depends on how many leap years fall within your lifetime. The tool handles this automatically, so the result is always precise to the day.

Workdays vs calendar days

This calculator shows both total calendar days and workdays (Monday through Friday). The two figures answer different questions:

Use caseWhich count to use
Payment terms (Net 30, Net 60)Calendar days
Project deadlines from a contract dateCalendar days (unless contract specifies business days)
Statutory notice periodsCalendar days (most jurisdictions)
Delivery estimates from a carrierWorkdays (Mon-Fri, sometimes excluding holidays)
Work effort estimation (sprints, tasks)Workdays
Court filing deadlinesUsually calendar days - always verify the specific rule
Bank processing timesWorkdays (business days), often excluding public holidays

Public holidays: This calculator counts Mon-Fri only. It does not exclude public holidays because these vary by country, region, and employer. If you need a holiday-adjusted workday count, subtract the number of public holidays that fall on weekdays within the period from the workday total shown.

A standard year contains approximately 261 workdays (the exact number varies between 260 and 262 depending on how weekends align with the start and end of the year). A typical month averages 21-22 workdays.

When I review project plans for example, one thing I always verify upfront is whether timelines use calendar days or business days - because the gap compounds quickly.

On a 90-day timeline, the difference between calendar days and workdays is roughly 26 days.

Net 30 payment terms are almost always calendar days in standard commercial contracts, while carriers and couriers quote business days. Knowing which clock you're on prevents disputes at both ends of a transaction.

Adding and subtracting days

Adding or subtracting days from a date is straightforward: each day shifts the calendar by exactly one position, regardless of month boundaries or leap years. Common applications:

  • Contract deadlines: A 30-day payment term from an invoice dated March 15 falls on April 14.
  • Notice periods: A 90-day notice period starting October 1 ends December 30.
  • Drug expiration: A 28-day course of medication starting January 3 ends January 30.
  • Trial periods: A 14-day free trial starting November 20 ends December 3.
  • Warranty and returns: A 30-day return window from a December 1 purchase expires December 31.
  • Financial quarters: Add 90 days to a quarter start to estimate the quarter-end date (actual quarter boundaries are fixed by calendar, so this is approximate).

Note that "add 1 month" and "add 30 days" are not the same thing. The Add / Subtract mode in this calculator adds or subtracts calendar days only. For month-based arithmetic, see the section below.

Days until a date (countdown calculations)

To count down to a future event, use the Date Difference tab. Set the start date to Today (click the Today button) and the end date to the target date. The result shows how many days remain - plus the workday count, which tells you how many working days are left before a deadline.

  • Days until Christmas: Today → December 24/25 of this year
  • Days until New Year: Today → January 1 of next year
  • Days since an event: enter the past date as start, Today as end - the result is elapsed days
  • Days left in the year: Today → December 31
  • Days until a project deadline: Today → the due date; use the workday count to see how many working days remain

Common date spans at a glance

DaysIn weeksApprox. monthsCommon context
71 week exactly-One-week turnaround
142 weeks exactly-Fortnight; standard notice in some contracts
304 weeks + 2 days~1 monthNet 30 payment terms
608 weeks + 4 days~2 monthsNet 60; extended return windows
9012 weeks + 6 days~3 months (1 quarter)Net 90; quarterly review periods; 90-day notice
18025 weeks + 5 days~6 months (half year)Mid-year review; many visa durations
36552 weeks + 1 day12 monthsOne year - non-leap year
36652 weeks + 2 days12 monthsOne year - leap year

Month and year arithmetic

The years-months-days breakdown in the Date Difference result uses exact calendar month counting, which behaves differently from simply dividing days by 30. The rules:

  • A complete calendar month elapses when the day-of-month in the end date is equal to or later than the day-of-month in the start date.
  • If the end date's day-of-month is earlier, the most recent month is not yet complete and the remaining days are counted from the end of the previous month.
Start dateEnd dateResultNotes
Jan 1Feb 11 month 0 daysExactly one calendar month
Jan 1Mar 152 months 14 daysTwo complete months plus 14 days
Jan 31Feb 280 months 28 daysNot a full month (Feb 28 < Jan 31 + 1 month)
Jan 31Mar 11 month 1 dayJan 31 + 1 month = Feb 28/29; + 1 day = Mar 1
Jan 31Mar 312 months 0 daysExactly two calendar months
Feb 28Mar 281 month 0 daysExactly one month regardless of Feb length
Dec 31, 2023Jan 1, 20240 months 1 dayJust one calendar day across a year boundary

The total days figure is always exact. The years-months-days breakdown is the most natural human-readable interpretation but should not be used for precise contractual calculations where the exact day count matters.

Month-end arithmetic

Month-end arithmetic is where I see the most silent bugs in billing and contract software. The question "what is January 31 plus one month?" has at least three defensible answers: February 28 (clamp to the last valid day of the month), March 3 (let the overflow roll forward), or March 1 (snap to the first day of the next month).

Quick tip when programming with date functions

Different programming languages and spreadsheet functions give different answers. If you're building a recurring billing system or contract renewal tracker, always test against January 31, February 28, and February 29 start dates - those three edge cases expose the behavior your users will eventually encounter.

Excel and Google Sheets formulas

For automating date calculations in spreadsheets, these are the most useful built-in functions:

What to calculateExcel / Sheets formulaNotes
Days between two dates=B1-A1Format the cell as Number. Works in both Excel and Sheets.
Workdays between two dates=NETWORKDAYS(A1,B1)Inclusive of both start and end date. Optional third argument for holidays.
Add N days to a date=A1+30Simply add a number. Ensure the result cell is formatted as Date.
Add workdays to a date=WORKDAY(A1,30)Adds 30 working days (Mon-Fri). Optional third argument for holidays.
Years elapsed=DATEDIF(A1,B1,"Y")DATEDIF is undocumented in Excel but works in all versions.
Remaining months after years=DATEDIF(A1,B1,"YM")Months in the partial year after complete years are subtracted.
Remaining days after months=DATEDIF(A1,B1,"MD")Days in the partial month after complete months are subtracted.
ISO week number=ISOWEEKNUM(A1)Returns the ISO 8601 week number for any date.

Note that NETWORKDAYS counts both the start and end date as workdays if they fall on weekdays, giving an inclusive count. This is 1 more than the workday figure this calculator shows (which uses exclusive counting, matching the total days convention).

Common mistakes when adding days to a date

Off by one: exclusive vs inclusive counting

The most common date calculation mistake is not knowing whether the start date or end date (or both) should be counted.

This calculator uses exclusive counting: start is not counted, end is counted. So January 1 to January 5 = 4 days. If your context requires inclusive counting (both start and end), add 1 to the days result.

Legal and financial contexts often specify "within 30 days" or "30 days from" - always read the contract or statute carefully to determine whether the start date counts as day 0 or day 1.

Treating all months as 30 days

Dividing a day count by 30 to get "months" is an approximation. February has 28 or 29 days; most other months have 30 or 31. Twelve months is not always 360 days - it is 365 or 366 days.

For precise month-based calculations, use the years-months-days breakdown from this calculator or the DATEDIF function in Excel rather than dividing the day count.

Ignoring time zones and Daylight Saving Time

Date calculations based on calendar days do not need to account for time zones or DST (Daylight Saving Time). However, if you are calculating a duration in hours or minutes and crossing a DST boundary, a day may be 23 or 25 hours rather than 24.

The hours and minutes values in this calculator are derived from the day count multiplied by 24 and 1440, which assumes every day is exactly 24 hours. For high-precision time-of-day calculations, use a dedicated timestamp calculator.

Confusion between the two workday counting conventions

Excel's NETWORKDAYS counts both the start and end date as workdays if they are weekdays (inclusive). This calculator counts Mon-Fri days in [start, end) - exclusive of the start, inclusive of the end.

This matches the total days convention but differs from NETWORKDAYS by 1 when both dates are weekdays. Be consistent in whichever convention you use within a single calculation.

FAQs about calculating days between dates

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

Enter both dates in the Date Difference tab. The result appears instantly in total days, weeks, workdays, and a years-months-days breakdown. The calculator always returns a positive result regardless of which date you enter first.

How do I find what date is 90 days from today?

Switch to the Add / Subtract tab. Click the Today button to set the start date, choose Add, and type 90 in the days field. The resulting date appears instantly with its weekday name, ISO week number, and how many days it is from today.

What counts as a workday?

Monday through Friday. Weekends (Saturday and Sunday) are excluded. Public holidays are not excluded because they vary by country and employer. Subtract any holidays that fall on weekdays within the period to get a holiday-adjusted figure.

How many workdays are in a year?

Approximately 261, ranging between 260 and 262 depending on the year. Enter January 1 and December 31 of any year in the Date Difference tab to see the exact workday count for that year.

Does February have 28 or 29 days?

29 days in a leap year (divisible by 4, except century years not divisible by 400), 28 days otherwise. This calculator handles leap years automatically.

Why is "1 month" not the same as 30 days?

Because calendar months have different lengths. One calendar month from January 31 is February 28 or 29 (not March 3). The Y/M/D display uses exact calendar month counting, not 30-day approximations.

How do I calculate days between dates in Excel?

Use =B1-A1 formatted as a number for calendar days. Use =NETWORKDAYS(A1,B1) for workdays (inclusive of both dates). Use =DATEDIF(A1,B1,"D") for an explicit day count via the DATEDIF function.

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

Use the workdays figure in the Date Difference tab, then subtract any public holidays that fall on weekdays in the period. For spreadsheet use, =NETWORKDAYS(A1,B1,holidays) accepts an optional range of holiday dates to exclude automatically.

Test your knowledge

Quiz: how well do you know date calculation?

5 questions · ~2 min

1. This calculator uses "exclusive counting." What does that mean for January 1 to January 5?

Exclusive counting means the start date is not counted but the end date is. January 1 to January 5 = 4 days (Jan 2, 3, 4, 5). If your context requires inclusive counting - both dates counted - add 1 to the result.

2. How many workdays does a standard calendar year typically contain?

A standard year contains approximately 261 workdays, ranging between 260 and 262 depending on how weekends align with January 1 and December 31. A typical month averages 21-22 workdays.

3. A Net 30 invoice is issued on a Tuesday. When is payment due under standard payment terms?

Net 30 and similar payment terms count calendar days, not workdays. A 30-day invoice is due exactly 30 calendar days later regardless of weekends or public holidays.

4. How does Excel's NETWORKDAYS(A1,B1) result compare to this calculator's workday count for the same range?

NETWORKDAYS gives an inclusive count, treating both start and end dates as workdays when they fall on weekdays. This calculator uses exclusive counting (start not counted), so NETWORKDAYS returns 1 more than this calculator's workday figure when both dates are weekdays.

5. What is the result of adding one calendar month to January 31?

"Add 1 month" and "add 30 days" are different operations. One calendar month from January 31 lands on February 28 or 29 - the last valid day of February. Some programming languages overflow to March 3 instead, which is a common source of billing system bugs.

Key terms