Sub topic 8
Estimating interest with the average daily balance
This chapter assumes you know the billing cycle, the statement balance and the grace period from the earlier chapters. It also assumes you can read a short Python function. The goal is to estimate the interest a card will charge you before the statement arrives.
Why an estimate is useful
Once you carry a balance, a statement shows an interest line but not how the issuer got it. If you can reproduce the number within a few cents, you can check the statement for errors. You can also see what a mid-cycle payment saves, and judge whether a purchase is worth carrying.
Most issuers use the average daily balance method. The balance is the amount you owe at the end of each day. The issuer adds up those daily balances over the cycle, divides by the number of days, and applies the daily rate to the result.
The working model
Three pieces make up the calculation.
- The daily periodic rate is the APR divided by the number of days in the year. At 24% APR with a 365-day year, it is 0.24 / 365, or about 0.0658% per day.
- The average daily balance (ADB) is the sum of each day's ending balance, divided by the days in the cycle.
- The interest estimate is ADB × daily rate × days in the cycle.
The first code example from this tutorial does the last step:
def estimated_interest(avg_daily_balance, apr, days_in_cycle):
"""Simplified estimate: issuers differ on 360 vs 365 days and on compounding."""
daily_rate = apr / 365
return avg_daily_balance * daily_rate * days_in_cycle
# $1,000 carried for a 30-day cycle at 24% APR
print(round(estimated_interest(1000, 0.24, 30), 2)) # 19.73That example assumes the balance stays at $1,000 every day. Real balances move, so the next step is computing the ADB itself.
Computing the average daily balance
Each purchase raises the balance from its posting date onward. Each payment lowers it from its posting date onward. The function below takes the opening balance and a list of (day, amount) events. Purchases are positive and payments are negative.
def average_daily_balance(opening_balance, events, days_in_cycle):
"""events: list of (day_number, amount). Day 1 is the first day of the cycle.
An event changes the balance from its day onward."""
balance = opening_balance
total = 0.0
for day in range(1, days_in_cycle + 1):
for event_day, amount in events:
if event_day == day:
balance += amount
total += balance
return total / days_in_cycle
def estimated_interest(avg_daily_balance, apr, days_in_cycle):
daily_rate = apr / 365
return avg_daily_balance * daily_rate * days_in_cycle
events = [(11, -400.00), (21, 200.00)] # payment on day 11, purchase on day 21
adb = average_daily_balance(1000.00, events, 30)
print(round(adb, 2)) # 800.0
print(round(estimated_interest(adb, 0.24, 30), 2)) # 15.78The table shows where 800 comes from.
| Days | Daily balance | Days × balance |
|---|---|---|
| 1 to 10 | $1,000 | 10,000 |
| 11 to 20 | $600 | 6,000 |
| 21 to 30 | $800 | 8,000 |
| Total | 24,000 |
Dividing 24,000 by 30 days gives an ADB of $800. At 24% APR, the interest is about $15.78. Without the payment on day 11, the estimate would have been $19.73 or higher. The $400 payment saved about $4, because it removed $400 from the balance for 20 days.
What this tells you about timing
Interest depends on balance multiplied by time. That has practical consequences.
- A payment made early in the cycle lowers interest more than the same payment made on the last day.
- A purchase made on day 2 adds interest for about 28 days. The same purchase on day 28 adds interest for about 2 days, if it is charged at all.
- Paying a card several times a month lowers the ADB, but it does not restore a lost grace period. Only paying the full statement balance by the due date does that.
Why your estimate may differ from the statement
Your number will usually land within a few cents to a few dollars of the real one. Differences come from these sources.
- 360 versus 365 days. Some issuers divide the APR by 360. At 24% APR, a $1,000 balance for 30 days gives $20.00 instead of $19.73.
- Compounding. Many issuers add each day's interest to the balance, so interest accrues on earlier interest. With daily compounding, $1,000 at 24% APR for 30 days costs about $19.92, not $19.73.
- Posting dates. A purchase counts from the day it posts, not the day you swiped the card. A payment counts from the day it posts, which can be a day or more after you sent it.
- Different balance types. A card can have separate APRs for purchases, cash advances and promotional balances. Each balance is calculated with its own rate and then added up.
- Variable APRs. Most card APRs move with a benchmark rate. If the rate changed mid-cycle, the cycle has two rates.
- Cycle length. Cycles run 28 to 31 days. Using 30 when the cycle was 31 days understates interest by about 3%.
Here is the compounding variant, so you can see the size of the difference:
def estimated_interest_compounded(balance, apr, days, days_in_year=365):
"""Interest if each day's interest is added to the balance daily."""
daily_rate = apr / days_in_year
return balance * ((1 + daily_rate) ** days - 1)
print(round(estimated_interest_compounded(1000, 0.24, 30), 2)) # 19.92
print(round(1000 * 0.24 / 360 * 30, 2)) # 20.0Common errors
- Using the statement balance instead of the ADB. If you paid part of the balance mid-cycle, the statement balance overstates what you owe interest on.
- Forgetting new purchases. When you carry a balance and lose the grace period, purchases generally start accruing interest from their posting date. They belong in the event list.
- Counting the payment on the due date. The due date falls in the next cycle. Payments made then reduce the ADB of the next cycle, not the one that just closed. That timing is why interest can still appear after you start paying in full, which the next chapter covers.
- Mixing up APR and the daily rate. Multiplying the balance by the APR without dividing by the days in the year overstates the charge by a factor of about 365 per day.
- Rounding too early. Keep the full daily rate in your calculation and round only the final amount.
Using the estimate to decide
Suppose a $300 purchase is made on day 5 of a 30-day cycle on a card at 24% APR, and you do not hold the grace period. The purchase adds $300 to the balance for 26 days (days 5 to 30). Its contribution to ADB is 300 × 26 / 30 = $260. The extra interest for the cycle is 260 × 0.24 / 365 × 30, which is about $5.13. If you repeat that every month without paying the card down, the cost recurs and builds on itself. The estimate makes the cost of carrying a balance visible before you commit.
Exercise
A 30-day cycle opens with a $600 balance on a card with an 18% APR. You make one $300 payment that posts on day 16, and you make no purchases. Using the 365-day, non-compounding method, what are the average daily balance and the estimated interest for the cycle?
Show answer
Days 1 to 15 have a $600 balance, which gives 600 × 15 = 9,000. Days 16 to 30 have a $300 balance, which gives 300 × 15 = 4,500. The total is 13,500, and 13,500 / 30 gives an ADB of $450. The interest is 450 × (0.18 / 365) × 30, which is about $6.66.
Exercise
Name two reasons the interest on your statement could be higher than your ADB estimate, even though your balance history was entered correctly.
Show answer
Any two of these: the issuer compounds interest daily, the issuer uses a 360-day year, the cycle had more days than you assumed, the APR changed during the cycle, or part of the balance had a higher APR (for example a cash advance).