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 at UTC midnight − start date at UTC midnight) ÷ 86,400,000. Whole weeks = floor(|elapsed days| ÷ 7). Remaining days = |elapsed days| mod 7.- Apply the formulaElapsed days = (end date at UTC midnight − start date at UTC midnight) ÷ 86,400,000. Whole weeks = floor(|elapsed days| ÷ 7). Remaining days = |elapsed days| mod 7.30 elapsed days2026-05-15 to 2026-06-14 crosses 30 day step(s), or 4 week(s) and 2 day(s). Inclusive calendar-date count would be 31 if both endpoints are counted.