calculator

Date Difference Calculator

Use the date difference calculator to count deadlines, trip lengths, billing windows, and date ranges with exclusive or inclusive rules.

Count days between two dates for schedules, trips, deadlines, subscription windows, billing ranges, and simple project planning.

Enter values

Choose the first calendar date in the range you want to count.

Choose the final calendar date; it must be the same as or after the start date.

Use exclusive for boundary differences and inclusive when both dates should count.

Result

Add values and run the tool to see a clear result here.

Choose how the date range should count

Match the counting mode to the task, then verify any business-day, holiday, booking, contract, school, or legal rule separately.

SituationChooseMeaning
Exclusive countExclusive modeCounts the boundary difference: Jan 1 to Jan 2 is 1 day.
Inclusive countInclusive modeCounts both endpoint dates: Jan 1 to Jan 2 is 2 dates.
Same-day rangeChoose by taskExclusive is 0 days; inclusive is 1 calendar date.
Booking nightsUsually exclusiveCheck-in to checkout commonly counts nights by boundary difference; confirm the booking policy.
Policy-dependent deadlineFollow the official ruleThe calculator does not remove weekends, holidays, cutoff times, or closure days.

How it works

Confirm both date boundaries

Enter the first and final calendar dates exactly as the schedule, booking, billing window, or deadline defines them. The end date must be the same as or after the start date.

Choose the counting mode

Decide whether the task needs inclusive or exclusive counting. Exclusive measures the boundary difference; inclusive adds one so both endpoint dates count.

Read calendar days

Treat the result as calendar days only. It does not automatically remove weekends, holidays, office closures, or partial days.

Check the external rule

Before using the number for a contract, school, booking, billing, or SLA decision, confirm the required endpoint rule, business-day policy, holiday calendar, and cutoff time.

Examples

Exclusive range

Input: Jan 1 to Jan 2

Output: 1 day

Inclusive range

Input: Jan 1 to Jan 2

Output: 2 days

Hotel nights

Input: Mar 10 check-in to Mar 15 checkout date exclusive

Output: 5 booking nights

Same-day task: compare both modes

Input: 2026-06-05 to 2026-06-05

Output: Exclusive: 0 days. Inclusive: 1 day because the one calendar date is counted.

Cross a leap-day boundary

Input: 2028-02-28 to 2028-03-01

Output: Exclusive: 2 days (Feb 28 to Feb 29 to Mar 1). Inclusive: 3 dates. In 2027 the same month/day range is 1 exclusive day or 2 inclusive dates.

Billing window

Input: Aug 1 to Aug 31 inclusive

Output: 31 days

SLA deadline

Input: Sep 1 to Sep 10 inclusive

Output: 10 calendar days before checking business-day policy

Project phase

Input: Apr 3 to Apr 7 inclusive

Output: 5 calendar days for a phase summary

FAQ

Can the end date be before the start date?

No. The tool returns a validation error.

What does exclusive mean?

It counts the difference between date boundaries.

What does inclusive mean?

It includes both the start date and end date.

Should I use inclusive or exclusive mode for a trip?

Use inclusive mode when both the arrival and departure calendar dates should count. Use exclusive mode when you only need the boundary difference.

Does it count business days?

No. It counts calendar days and does not remove weekends, holidays, or office closure days.

Should I count a checkout date for hotel nights?

Usually no. Booking nights commonly use the exclusive difference from check-in to checkout date, but confirm the booking or rental policy.

Does this know local deadline rules?

No. It counts calendar days only. Legal, business, school, or contract deadlines may exclude weekends, holidays, or local cutoff times.

Can I use this for countdowns?

Yes. Exclusive mode works well for simple countdown-style day differences between two calendar dates.

Does the calculator include time of day?

No. It uses calendar dates only, so hours, minutes, time zones, and daylight-saving changes are not part of the result.

What should I check before sending the result?

Confirm whether the recipient expects inclusive or exclusive counting, business days or calendar days, local holidays, cutoff times, and the exact deadline policy.