CalculationTime

Time & Date

Days Between Dates Calculator

Full calculator

Time & Date

Days Between Dates Calculator

Live answer30 days4 whole weeks, 2 remaining days
Live result30 days4 whole weeks, 2 remaining 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.

Live math canvas

Your numbers, formula and explanation together

Days Between Dates Calculator: 30 days. 4 whole weeks, 2 remaining days

Formula applied

The exact method behind this answer

CalculationTime keeps the method visible so the number can be checked instead of blindly trusted.

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. Apply the formulaElapsed 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.30 days4 whole weeks, 2 remaining days

Your live breakdown

Current inputs in the calculation

These values come from the controls above and update when the calculator changes.

Start year
2,026
Enter the year for the first date.
Start month
5
Enter the start month as a number from 1 to 12.
Start day
18
Enter the day of month for the first date.
End year
2,026
Enter the year for the second date.
End month
6
Enter the end month as a number from 1 to 12.
End day
17
Enter the day of month for the second date.
Include start date?
0 0=no, 1=yes
Use 1 when the first date should count as a full included day, such as a rental, leave, custody or classroom record.
Include end date?
0 0=no, 1=yes
Use 1 when the final date should count as a full included day. Leave at 0 for ordinary elapsed time between dates.

Resulting answer

30 days

4 whole weeks, 2 remaining days

Answer
30 days
Live support
4 whole weeks, 2 remaining days

Assumptions used

What this answer assumes

Best for project timelines, leave planning, booking records, custody schedules, rental periods, subscription checks and classroom worksheets where the counting rule must be visible.

  • 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.

Master’s Tip

How to use the result well

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.

Printable record

What belongs in the saved calculation

Save the inputs, result, formula, assumptions, page URL and date together so the calculation can be reviewed later.

Start year
2,026
Enter the year for the first date.
Start month
5
Enter the start month as a number from 1 to 12.
Start day
18
Enter the day of month for the first date.
End year
2,026
Enter the year for the second date.

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 days4 whole weeks, 2 remaining 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://www.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.