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