A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Use Excel’s date arithmetic to derive the “effective” due date each month, then multiply the number of days in the period by the daily rate (annual fee ÷ 365.25).
Assume:
- Annual fee in cell B2
- Nominal due day (e.g., 30) in cell C2
- Month and year for the period in cells D2 (month as number 1–12) and E2 (year)
- Build the effective due date for the month (last calendar day if the nominal day does not exist in that month):
=MIN(DATE(E2,D2,C2),EOMONTH(DATE(E2,D2,1),0))
Explanation using the DATE function:
-
DATE(E2,D2,C2)builds the nominal due date (e.g., 2026-02-30). If the day is too large, Excel automatically rolls it into the next month as described for the DATE function. -
EOMONTH(DATE(E2,D2,1),0)returns the last day of the month. -
MIN(...)forces the due date to be the earlier of the nominal date and the last day of the month, so for February with a due day of 30, the result is 28-Feb (or 29-Feb in a leap year).
- Get the previous month’s effective due date:
=MIN(DATE(E2,D2-1,C2),EOMONTH(DATE(E2,D2-1,1),0))
- Calculate the number of days in the period between the two effective due dates:
=EffectiveDueDateThisMonth - EffectiveDueDatePreviousMonth
If the effective due dates are in F2 (this month) and G2 (previous month):
=F2 - G2
- Calculate the amount due for the period using 365.25 days per year:
=(B2 / 365.25) * (F2 - G2)
This matches the example: for a due date of 30th and February in a non-leap year, the effective dates will give 1 day in January plus 28 days in February, so 29 × (annual fee ÷ 365.25).
References: