CalculationTime

Time & Date

Days Between Dates Calculator

Calculate elapsed days between two calendar dates, with inclusive-date options, weeks-and-days breakdown and a printable date-span record.

Default example30 days30 elapsed days · 30 counted days with start=not included, end=not included · 4 weeks 2 days

Calculator

Working calculator

Live result30 days30 elapsed days · 30 counted days with start=not included, end=not included · 4 weeks 2 days
Formula used

Elapsed days = end date − start date in UTC calendar days. Counted days = elapsed days + include start flag + include end flag. Whole weeks = floor(abs(counted days) ÷ 7). Remaining days = abs(counted days) mod 7.

This is the method behind the answer, so the result can be checked rather than simply trusted.

What-if check

Inclusive-date rules change the count

The calendar endpoints stay fixed. Only the counting rule changes, which is why the printable report keeps the inclusive-date choices visible.

Counting ruleDaysWeeks + days
Elapsed only304w 2d
Include start314w 3d
Include end314w 3d
Include both324w 4d

Visual proof

Date span timeline

StartEnd2026-05-182026-06-17Current count: 30 days · 4w 2d

The line shows the elapsed span; the table shows how inclusive counting can add filing or policy days.

Visual grid

This number is one point on a larger pattern

Days Between Dates is not just a final answer. It is a step on a line: before and after, input and output, assumption and result.

Micro-timehours, minutes, shiftsHuman scaledays, weeks, projectsMacro-timemonths, years, calendars
InputFormulaResult
30 days

CalculationTime keeps the path visible: the input, the method and the final number belong together.

CalculationTime

Days Between Dates Calculation Report

Report date:

30 days30 elapsed days · 30 counted days with start=not included, end=not included · 4 weeks 2 days

Inputs

Start date
2026-05-18
End date
2026-06-17
Include start date?
No — elapsed time only
Include end date?
No — elapsed time only

Method

Elapsed days = end date − start date in UTC calendar days. Counted days = elapsed days + include start flag + include end flag. Whole weeks = floor(abs(counted days) ÷ 7). Remaining days = abs(counted days) mod 7.

  1. From 18 May 2026 to 17 June 2026, elapsed days = 30. Whole weeks = floor(30 ÷ 7) = 4, with 2 days remaining. If both start and end dates are counted inclusively, counted days would be 32, or 4 weeks and 4 days.

Assumptions

  • Dates are interpreted as calendar dates, not local clock times, so daylight-saving time changes do not alter the day count.
  • The default result uses elapsed time between dates: the start date itself is not counted as a full day unless selected.
  • Inclusive start/end options are counting rules for records; they should match the policy, worksheet, booking, lease, leave or custody agreement being used.
  • The calculator reports the sign when the end date is before the start date, but the weeks-and-days breakdown is shown as an absolute span for readability.

Notes

Use this space on the printed report for client, supplier, classroom, job-location, measurement, quote or approval notes.

Source: https://calculationtime.com/calculators/days-between-dates-calculator

This report shows the calculation inputs, formula, assumptions and result for review. It is not legal, payroll, tax, engineering, financial or academic advice unless a qualified professional confirms the applicable rules.

Formula

Elapsed days = end date − start date in UTC calendar days. Counted days = elapsed days + include start flag + include end flag. Whole weeks = floor(abs(counted days) ÷ 7). Remaining days = abs(counted days) mod 7.

Worked example

From 18 May 2026 to 17 June 2026, elapsed days = 30. Whole weeks = floor(30 ÷ 7) = 4, with 2 days remaining. If both start and end dates are counted inclusively, counted days would be 32, or 4 weeks and 4 days.

Professional note

Master’s Tip: decide whether you need elapsed time or counted dates before printing the report. Payroll, rent, leave, school terms and custody schedules can use different inclusive-date rules even when the same two dates are entered.

Regional and unit assumptions

Standard or basis: proleptic Gregorian calendar date arithmetic using UTC midnight boundaries. This page is a general calculator, not a legal, payroll, tenancy, benefits or court deadline interpretation.

Assumptions and limitations

Methodology & Accuracy

How this calculator is checked

CalculationTime pages are built around visible arithmetic: the formula, assumptions, worked example and practical limitations are shown so the result can be checked rather than simply trusted.

Formula used

Elapsed days = end date − start date in UTC calendar days. Counted days = elapsed days + include start flag + include end flag. Whole weeks = floor(abs(counted days) ÷ 7). Remaining days = abs(counted days) mod 7.

Standard or basis

Standard or basis: proleptic Gregorian calendar date arithmetic using UTC midnight boundaries. This page is a general calculator, not a legal, payroll, tenancy, benefits or court deadline interpretation.

Where a calculator follows a named legal, trade or industry standard, that standard is cited visibly. Otherwise the page uses transparent general arithmetic and states its limits.

Master's Tip

Master’s Tip: decide whether you need elapsed time or counted dates before printing the report. Payroll, rent, leave, school terms and custody schedules can use different inclusive-date rules even when the same two dates are entered.

Related calculators

Questions

How do I calculate days between two dates?

Subtract the start date from the end date using calendar-day boundaries. The calculator uses UTC midnight for both dates, then reports the elapsed days.

Should I include the start date when counting days?

For elapsed time, do not count the start date as a full day. For records such as rentals, leave, custody, school attendance or worksheets, use the inclusive option only if that rule is required.

What is the difference between elapsed days and inclusive days?

Elapsed days measure the time from one date boundary to another. Inclusive days count named dates touched by the period, which can add the start date, the end date, or both depending on the rule.

Does daylight saving time affect days between dates?

No for this calculator. It compares calendar dates at UTC midnight, so daylight-saving clock changes do not add or remove calendar days.

What should I print for a date-span record?

Print the start date, end date, inclusive-counting choices, elapsed days, counted days, weeks-and-days breakdown, formula, page date and notes so the counting basis can be checked later.

Calculation note

Date-span questions look simple until people mix elapsed time with inclusive date counting. A transparent days-between-dates record keeps the start date, end date, day count and counting rule together so the result can be checked instead of argued later.

Elapsed time and counted dates are not the same thing

If a project starts Monday and ends Wednesday, the elapsed span is two days. A form or worksheet might count Monday, Tuesday and Wednesday as three included dates. Both can be valid if the counting rule is named.

UTC midnight keeps date-only arithmetic stable

Local daylight-saving changes can make a clock day 23 or 25 hours long. This calculator compares date boundaries at UTC midnight so the answer remains a whole calendar-day count.

Printed date-span records prevent rule drift

The same dates can appear in a classroom worksheet, rent note, leave plan, payroll memo or family schedule. Printing the inclusive-date choice beside the result makes the counting basis explicit.