Skip to content
Dilawar Hussain

Date duration calculator

Count calendar days, weeks, and inclusive days between two dates, with the weekday of each endpoint.

Browser compute / no account / no upload

Enter a start date and an end date. The result counts calendar days, not business days.

Use the date picker; the field follows your browser date format.

Method

  • The duration is the difference between two civil dates. It counts the day boundaries crossed, not the number of hours.
  • Inclusive days add one, because both the start date and the end date are counted as days in the interval.
  • Business days are not computed. They depend on weekends, holidays, and the calendar rules of a jurisdiction.

Reference: NIST: Time and Frequency Division

A date difference answers questions such as how many days remain before a deadline, how long a project ran, or how many nights a booking covers. The arithmetic looks simple, but leap years, inclusive counting, and business-day rules cause most of the errors. This calculator returns the elapsed days, the same interval in weeks and days, and the inclusive count.

Elapsed and inclusive days

The elapsed count is the end date minus the start date. A meeting that starts on Monday and ends on Tuesday lasts one elapsed day. The inclusive count adds one, because both Monday and Tuesday are days that the event touches. Neither count is more correct; the question decides which one you need.
The same interval expressed three ways.
Measure2026-12-05 to 2027-01-05Use
Elapsed days31Nights, age differences, elapsed time
Inclusive days32Calendar days touched by an event
Weeks and days4 weeks, 3 daysPlanning and reporting

Worked example

Example 1

From 5 December to 5 January

Problem

How many days are there from 2026-12-05 to 2027-01-05?

Solution

  1. December has 31 days. From December 5 to December 31 is 26 days.

  2. Add the five days in January: .

  3. Divide by seven: .

  4. Add one for the inclusive count: .

Answer

31 elapsed days, 4 weeks and 3 days, or 32 inclusive days

Source: Gregorian calendar arithmetic.

Leap days matter

From 2024-02-28 to 2024-03-01 there are two elapsed days, not one, because 2024 is a leap year and February 29 sits between the dates. A calculator that assumes every February has 28 days will be wrong whenever the interval crosses a leap day. The civil-day count used here includes the extra day automatically.

Why business days are different

Business-day counts exclude weekends and holidays. A five-day project that starts on Friday may finish on the following Friday once the weekend is removed. Holiday rules vary by country, region, and employer, and some calendars use a six-day week. This calculator does not guess those rules; it reports calendar days only.

Common mistakes

  • Subtracting month numbers and ignoring the days. Calendar arithmetic needs a day count, not a month count.
  • Forgetting the leap day when February 29 falls inside the interval.
  • Mixing inclusive and elapsed counts. A hotel stay of three nights touches four dates.
  • Assuming a day is always 24 hours. Daylight saving transitions create 23-hour and 25-hour days, but the calendar date still changes once.
  • Treating calendar days as business days without applying weekend and holiday rules.
  • Ignoring time zones when the two dates come from different places.

Limits and assumptions

The calculator works with whole calendar dates from the proleptic Gregorian calendar. It does not include times of day, time zones, daylight saving transitions, business calendars, or holiday lists. For a legal deadline, a payroll period, or a contractual notice period, use the counting rule stated in the governing document.

Key takeaways

  • Elapsed days count the difference between dates; inclusive days add one.
  • Leap years add a day inside intervals that cross February 29.
  • Weeks and days are another way to express the same elapsed count.
  • Business days require weekend and holiday rules that this tool does not assume.