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 days4 whole weeks, 2 remaining days