Days Between Dates Calculator

Count the days, weeks, months, and business days between any two dates.

Time & Date Business days Inclusive option
Rate this calculator · 4.8 (4)

Days between two dates

Calendar, weeks, months, business days · inclusive option

Instructions — Days Between Dates Calculator

1

Pick your two dates

Enter a start date and an end date. The defaults are today and 30 days from today. The calculator runs in your browser timezone and re-computes instantly as you type.

2

Pick inclusive or exclusive

Default is exclusive: "May 1 to May 11" = 10 days. Inclusive adds the end date: "May 1 to May 11" = 11 days. Legal deadlines almost always use exclusive. Hotel stays use inclusive for the room count.

3

Read all four units

The result shows total days, weeks plus extra days, whole months plus extra days, and business days (weekdays only). Use whichever unit your context needs.

Reversed dates work: if you enter end before start, the calculator swaps them and reports the absolute count.
Business days exclude holidays? No. This counter skips Saturday and Sunday only. Subtract any federal holidays in your range manually.

Formulas

Date difference is conceptually subtraction, but the edge cases (leap years, month length, inclusive counts) matter. Here is what the calculator computes.

Days between (exclusive)
$$ \Delta d = | d_{end} - d_{start} | $$
Absolute difference in calendar days. The 11th of May minus the 1st of May = 10 days.
Days between (inclusive)
$$ \Delta d_{inc} = | d_{end} - d_{start} | + 1 $$
Counts the end date as one of the days. Common in hotel stays, museum exhibitions, and event durations.
Weeks and extra days
$$ w = \lfloor \Delta d / 7 \rfloor, \;\; r = \Delta d \bmod 7 $$
30 days = 4 weeks and 2 days. 100 days = 14 weeks and 2 days. 365 days = 52 weeks and 1 day.
Business days
$$ b \approx \Delta d \times \frac{5}{7} $$
Exact count requires iterating day by day and skipping weekends, which this calculator does. The 5/7 ratio is just a rule of thumb.
Julian Day Number
$$ JD = 367Y - \lfloor \frac{7(Y + \lfloor \frac{M+9}{12} \rfloor)}{4} \rfloor + \lfloor \frac{275M}{9} \rfloor + D + 1721013.5 $$
Astronomical method. Converts any date to a continuous day number since 4713 BC, then subtracts. Used by NASA and the U.S. Naval Observatory.
Years (average)
$$ y = \Delta d / 365.25 $$
Average Julian year length, accounts for leap years. For exact age in years, use a dedicated age calculator that handles birthday rollover.

Reference

Common date-difference contexts
ContextCount styleNotes
Legal deadlines (US)Calendar, exclusiveFederal rules usually exclude the day of the event, include the last day
Hotel nightsInclusive of stay3 nights = check-in Mon, check-out Thu
Project deadlinesBusiness daysCommon in software estimates and consulting
Schengen 90/180Calendar, inclusiveMax 90 days in any 180-day window
Pregnancy280 days from LMPNaegele rule, ~40 weeks
B2B invoices (NET 30)Calendar, exclusive30 days from invoice date
Statute of limitationsVaries by stateSome toll start date, some include it

Days in a year: calendar vs. business

Standard reference points for annual planning.

Calendar reference
PeriodDays
1 week7 days
2 weeks14 days
1 month (avg)30.44 days
Quarter~91 days
Half year~183 days
1 year (regular)365 days
1 year (leap)366 days
1 decade3,652 or 3,653 days
Business days per year
CountryWorking days
US (federal)~251 (104 weekend + 11 holidays)
UK~252 (104 weekend + 8 bank holidays)
Germany (avg)~249 (varies by Bundesland)
France~252
Japan~245 (16 national holidays)
India~245-250 (varies by state)
Australia~252

Note: business-day counts vary year to year because some holidays land on weekends. This calculator skips Saturday and Sunday only; subtract observed holidays in your range for full accuracy.

Article — Days Between Dates Calculator

Days between dates: how to count them correctly

A days between dates calculator subtracts one calendar date from another and returns the result in days, weeks, months, and business days. The arithmetic is simple subtraction at heart, but four edge cases trip people up regularly: whether to include the end date, whether to count weekends, what "one month" means when months vary from 28 to 31 days, and how leap years shift the count.

The tool above answers all four. Enter two dates and you get the calendar-day count, the same count in weeks plus extra days, in whole months plus extra days, and in business days (Monday through Friday only). It works for any pair of dates, past or future, and handles reversed inputs without complaint.

How many days between two dates?

The number of days between two dates is the later date minus the earlier date, expressed in 24-hour intervals. May 1 to May 11 is ten days. January 1 to December 31 of the same year is 364 days. January 1 of one year to January 1 of the next is 365 days, or 366 across a leap year.

Every language with a date type handles this natively. In JavaScript, (end - start) / 86400000 gives the count in days. In Excel, simple subtraction returns days. In SQL, DATEDIFF does the same. The calculator at the top of this page uses the JavaScript approach in your browser, so no data leaves your device.

The math
days = |end - start| (in 24h intervals)
weeks = floor(days / 7) extra = days mod 7
business ≈ days × 5/7 (exact: iterate, skip Sat/Sun)
years = days / 365.25 (average, includes leap)

Inclusive vs. exclusive counts

The most common error in date counting is the off-by-one. "From May 1 to May 11" is ten days if you exclude the start date, eleven if you include both endpoints. The right answer depends on the rule you are applying.

US federal court rules use the modern "exclude the start, include the end" convention. Hotel stays count nights, so three nights means check-in Monday and check-out Thursday. The Schengen short-stay rule counts every day of physical presence, including the day of entry and the day of exit. Tax deadlines vary by statute; read the rule before counting.

The off-by-one error in contracts

"Within 30 days of notice" almost always means the start date does not count. A notice dated May 1 gives the recipient until May 31 to respond, not until June 1. The 30 calendar days run from May 2 through May 31. Read contract language literally — courts will.

Calendar days vs. business days

Calendar days count every day of the week. Business days count only Monday through Friday, sometimes also excluding public holidays. The two units produce very different deadlines for the same nominal count.

30 business days is approximately 42 calendar days. That is six full weeks of elapsed time, almost half again as long as a 30-calendar-day window. People who plan around "30 days" and discover the contract actually says "30 business days" lose two weeks of slack they assumed they had.

30 calendar days
~1 month
4 weeks + 2 days
30 business days
~6 weeks
42 calendar days

The United States has about 251 working days in a typical year (365 minus 104 weekend days minus roughly 11 federal holidays). The United Kingdom has about 252 (8 bank holidays). Germany has roughly 249, varying by Bundesland because some states observe more religious holidays. Japan has about 245 thanks to 16 national holidays. These numbers shift year to year as holidays land on weekends.

Converting to weeks, months, and years

Days convert to weeks cleanly: divide by seven, keep the remainder. 30 days is 4 weeks plus 2 days. 100 days is 14 weeks plus 2 days. 365 days is 52 weeks plus 1 day — the reason your birthday lands on the next weekday each year.

Conversion to months is messier because months have different lengths. The calculator above counts whole months by anchoring to the same day-of-month in each successive month, then adds the leftover days. The average month length (365.25 days divided by 12) is 30.44 days, which is useful only for very rough estimates.

Years convert by dividing days by 365.25, the average length including the once-in-four-years leap day. Over a century the average is closer to 365.2425, because the Gregorian rule drops three leap days every 400 years. For most personal use, 365.25 is enough.

  • 1 week = 7 days exactly
  • 1 month = 28 to 31 days (average 30.44)
  • 1 quarter = ~91 days (90, 91, or 92 depending on quarter)
  • 1 year = 365 days (366 in leap years)
  • 1 decade = 3,652 or 3,653 days, depending on leap distribution
  • 1 century = 36,524 days (Gregorian, with skipped leap years)
  • 1 millennium = 365,242 days

Leap years and the math

Leap years exist because Earth orbits the sun in roughly 365.2422 days, not 365 exactly. Adding a day every four years overcorrects slightly, so the Gregorian calendar drops three of those leap days per 400 years. The rule: divisible by 4 means leap, unless also divisible by 100 and not by 400.

2000 was a leap year (divisible by 400). 1900 was not (divisible by 100 but not 400). 2100 will not be either, for the same reason. The next non-leap century year that humans alive today might see is 2100, which will quietly skip February 29 and produce a 365-day year despite being divisible by 4.

Did you know

When Pope Gregory XIII introduced the Gregorian calendar in October 1582, the next day after October 4 was October 15. Ten days were simply deleted from the calendar to correct accumulated drift in the older Julian calendar. Britain held out until 1752 and had to drop eleven days. Greece was the last European country to switch, in 1923. Historical date calculations spanning the reform need to account for which calendar was in use in each country at each time.

Tax and legal deadlines are where exact day counting becomes consequential. The Internal Revenue Service applies the "next business day" rule when an April 15 deadline lands on a weekend or federal holiday, pushing the deadline to the next working day. Most US federal courts follow a similar rule under Federal Rule of Civil Procedure 6.

Private contracts usually do not roll forward automatically. A contract that says "payment due within 30 days" means the calendar date 30 days later, even if it lands on a Sunday. The lender or vendor is not required to extend the deadline. Many do, but they are not obligated.

Statutes of limitations are particularly unforgiving. Filing one day after a personal injury limitation period expires usually means the case is dismissed regardless of merit. The exact start date of the limitation period varies by state and by tort type, which is why this calculator is helpful but no substitute for asking a lawyer.

Schengen and other travel rules

The Schengen 90/180 rule allows non-EU visitors a maximum of 90 days inside the Schengen area within any rolling 180-day window. The count is not annual or per-trip; it is a sliding window. Every day of physical presence counts, including the day of entry and the day of exit.

The European Commission publishes an official calculator at ec.europa.eu that implements the exact rule. Travelers who lose track of their cumulative days can face entry bans of up to three years on re-entry. The rule is enforced by individual member states, so consistency varies, but the legal exposure is real.

Other countries have similar rules with different numbers. The UK allows up to 180 days in a 12-month period for standard visitors. Canada generally allows 6 months per entry with no rolling rule. Australia uses a 90-day rule for ETA holders. Always check the current rule before booking — they change.

Tip

For Schengen day counting, keep a spreadsheet of every entry and exit stamp. Most travelers underestimate their cumulative time because they remember trips by month, not by day count. Days in transit through Schengen airports also count, even if you never leave the airport.

Common mistakes

Forgetting leap years on long horizons. Multiplying years by 365 underestimates the day count slightly. Over a decade the gap is two or three days. For exact counts on long spans, use the calculator rather than mental arithmetic.

Mixing calendar and business days. "30 days" and "30 business days" sound similar and produce deadlines almost two weeks apart. The default reading in US case law is calendar days unless the contract specifies otherwise.

Counting the wrong endpoint. Off-by-one errors come from disagreement about whether the start date, the end date, or both are part of the count. Decide which rule applies before you compute. The calculator's "include end date" toggle exists to make this explicit.

Ignoring time zones. A deadline of "May 13" is usually interpreted in the timezone of the receiving party. A May 13 filing in New York can be considered late if delivered at 9 PM Pacific because it is already May 14 on the East Coast. Legal deadlines tied to court days follow the court's local timezone.

Confusing 30 days with one month. They are not the same. 30 days from January 31 is March 2 (or March 1 in a leap year), but one month from January 31 is February 28 or 29. Contracts that say "30 days" mean 30 days, not "the same date next month."

Excel's 1900 leap year bug

Microsoft Excel treats February 29, 1900 as a real date even though 1900 was not a leap year. The bug was inherited from Lotus 1-2-3 in the 1980s and deliberately preserved for backward compatibility. Date arithmetic that crosses February 1900 in Excel is off by one day. For modern dates, Excel is correct.

FAQ

Subtract the earlier date from the later one. May 1 to May 11 = 10 days (exclusive of the start date). The calculator above handles leap years, month lengths, and the inclusive/exclusive distinction automatically.
It depends on context. Legal deadlines in US federal court usually exclude the start date and include the end date. Hotel stays count nights (inclusive of check-in, exclusive of check-out). Business contracts usually mean exclusive — "due in 30 days" excludes today. When in doubt, ask which day is day zero.
Skip Saturday and Sunday between the two dates. This calculator does it automatically and shows the count alongside calendar days. Most professional contexts also exclude federal holidays — you would subtract those manually. The US has 11 federal holidays per year.
Set the start date to today (the calculator defaults to it) and pick the future date. The result shows calendar days, weeks, months, and business days. For long horizons, the "Years" cell uses an average year length of 365.25 days.
A continuous count of days since January 1, 4713 BC, used by astronomers. May 13, 2026 has Julian Day Number 2460809. To find days between any two dates, convert each to JDN and subtract. The U.S. Naval Observatory publishes the exact formula and a free conversion tool.
Leap years add a day (February 29). The calculator handles this automatically. A leap year occurs when the year is divisible by 4, except century years not divisible by 400. So 2000 was a leap year, 1900 was not, 2100 will not be. The next leap year after 2024 is 2028.
Yes. The Schengen 90/180 rule counts every calendar day spent in the area, weekends included. The maximum is 90 days in any rolling 180-day window. The European Commission publishes an official calculator at ec.europa.eu/assets/home/visa-calculator that follows the same logic.
30 days is exactly 30 days. One calendar month varies from 28 to 31 days. "30 days from February 1" is March 3 (or March 2 in a leap year); "one month from February 1" is March 1. The gap can be one or two days, which matters in contracts and tax filings.