Days between dates calculator
Count the exact number of days, weeks, months, or business days between any two dates.
Related tools
How days are counted
The calculator counts the number of calendar days between the start and end date, inclusive of the start date but not the end date. This is the standard convention, the same way you count the days in a hotel stay or a project duration.
Business days exclude Saturdays and Sundays. Public holidays are not excluded, as these vary by country and region. If you need to exclude specific holidays, subtract them manually from the business days count.
Common uses
- Calculate contract or project durations
- Find out how many days until a deadline, event, or holiday
- Count business days for payment terms such as net-30 or net-60
- Calculate notice periods for employment or leases
- Determine how many days have passed since an event
Inclusive vs exclusive counting
The "start inclusive, end exclusive" convention (also called half-open interval) is the most common in both everyday use and programming. Under this convention:
- A hotel stay checking in on March 1 and checking out on March 4 is 3 nights (March 1, 2, 3)
- A project running from Monday to Friday is 5 days
- A 30-day trial starting January 1 expires on January 31 (day 30 is January 30, the last full day)
Some legal contexts use fully inclusive counting (both start and end dates count), which adds one day. If a law specifies that an appeal must be filed within 30 days of a decision dated January 1, and both the decision date and the filing date count, the deadline is January 30, not January 31. When precision matters legally, always verify which convention applies.
Converting days to other units
| Unit | Conversion from days |
|---|---|
| Weeks | days ÷ 7 |
| Months (approximate) | days ÷ 30.4375 |
| Years (approximate) | days ÷ 365.25 |
| Hours | days × 24 |
| Minutes | days × 1,440 |
| Seconds | days × 86,400 |
The month and year conversions are approximate because months have different lengths and years vary by leap year. For exact month or year counts, use the age or date difference calculators that apply calendar-aware arithmetic rather than dividing by an average.
Business days in practice
A calendar month contains roughly 20 to 23 business days depending on how weekends fall. A year contains 260 to 262 business days (52 weeks × 5 days, ±1 or 2 depending on where January 1 falls). These figures exclude public holidays, which further reduce the count by 8 to 12 days in most countries.
For payment terms: net-30 in most commercial contexts means 30 calendar days, not 30 business days. Net-30 business days would be approximately 6 weeks. Always check whether a payment term specifies calendar or business days, as the difference is material for cash flow planning.
For employment notice periods: a 2-week notice period typically means 14 calendar days in most jurisdictions, not 10 business days — though this varies by country and employment contract. Legal notice periods in some countries are expressed in working days, which requires knowing the local public holiday schedule to calculate precisely.
Practical examples
Project deadlines
A project starting on April 7 with a 90-day duration ends on July 6. If the contract specifies 3 months instead, it ends on July 7 — one day later, because months are used rather than a raw day count.
Payment terms
An invoice dated March 15 with net-30 terms is due April 14. An invoice dated March 1 with net-30 is due March 31. The due date shifts with every invoice date, making a calculator more reliable than mental arithmetic for accounts payable management.
Lease and tenancy
A 12-month lease starting September 1 ends on August 31 the following year — not September 1. The tenant has the right to occupy through August 31, which is 365 days (or 366 in a leap year). A lease ending on September 1 would be a 13-month lease by convention.
Age of events and records
Knowing the number of days since a historical event, the founding of a company, or the start of a conflict gives a precise measure that avoids ambiguity about how to count partial years. The days-between calculator gives this directly as an integer.
Frequently asked questions
How do I calculate the number of days between two dates?
Enter a start date and an end date. The calculator returns the total number of calendar days between them, counting the start date but not the end date (the standard half-open interval convention). For example, the days between January 1 and January 31 is 30, not 31.
How many business days are between two dates?
The calculator provides a business days count alongside the calendar days count. Business days exclude Saturdays and Sundays. Public holidays are not excluded automatically, as they vary by country and region — if your calculation requires excluding specific holidays, subtract them manually from the business days result.
How many days until a date?
Set the start date to today and the end date to the target date. The result is the number of days remaining. This works for upcoming deadlines, events, holidays, or any future date. The calculator updates based on the dates you enter, so you can use any start date — not just today.
How many days since a date?
Set the start date to the past date and the end date to today. The result is the number of days that have elapsed since that date. This is useful for calculating how long a project has been running, how many days since an event, or the age of a record in days.
What is the difference between calendar days and working days?
Calendar days count every day including weekends and public holidays. Working days (also called business days) exclude Saturdays and Sundays, and typically exclude public holidays as well. A 30-calendar-day period contains roughly 20–22 working days. Net-30 payment terms almost always refer to 30 calendar days; legal notice periods may specify either, depending on jurisdiction.
Why does my day count differ by one from what I expected?
The most common reason is the counting convention. This calculator uses start-inclusive, end-exclusive counting: the start date counts as day 1, but the end date does not count. A hotel stay from March 1 to March 4 is 3 nights (March 1, 2, 3). Some legal contexts use fully inclusive counting (both dates count), which adds one day. Check which convention applies to your use case.
Related articles
Epoch Time in APIs and Logs Explained: How to Read and Convert It CorrectlyEpoch time appears everywhere in APIs, databases, and logs, but it is easy to misread. This guide explains what epoch time means, why systems use it, and how to convert it without common mistakes.
How to Calculate Age in Months: A Practical Guide for Babies, Records, and PlanningAge in months matters more often than people think, especially for babies, forms, and milestones. This guide explains how to calculate age in months correctly and avoid common mistakes.
How Age Works for Leap Year Birthdays: February 29 ExplainedBeing born on February 29 creates age-calculation questions people rarely think about until they matter. This guide explains leap-year birthdays, legal age questions, and how to calculate age correctly.