Sub topic 3
Breaking the loop with opening-balance interest
This chapter assumes you can build a basic debt schedule and a cash flow waterfall (cash flow available for debt service, then interest, then repayment). It also assumes you know IF, MIN, MAX and AVERAGE. The previous chapters explained why average-balance interest on a cash-sweep loan forms a circular reference. This chapter covers the simplest fix: calculate interest on the balance at the start of the period, so the loop never forms.
The idea in one sentence
Interest for a period is the rate times the opening balance. The opening balance is the previous period's closing balance, so it is already known when the current period is calculated. Nothing in the current period feeds back into interest.
Where the loop disappears
With average-balance interest, the dependency chain closes on itself:
- Interest depends on the closing balance (through the average).
- The closing balance depends on repayment.
- Repayment depends on cash left after interest.
- Cash left after interest depends on interest.
Switching to the opening balance removes step 1. Interest now depends only on a number from the prior column, and the chain runs in one direction.
Every arrow points forward. The only link between periods goes from one closing balance to the next opening balance, and that is a normal cross-column reference, not a circular one.
The formulas
This is the same block you will use as the circuit breaker's fallback branch later in the tutorial. Here it is in its simplest form:
Debt_Open: = previous column's Debt_Close
Interest: = Rate * Debt_Open
Repayment: = MIN(Debt_Open, MAX(0, CFADS - Interest))
Debt_Close: = Debt_Open - RepaymentEach line reads only from lines above it or from the previous column. Excel can calculate the sheet in a single pass, so iterative calculation can stay switched off.
The MAX(0, ...) stops a negative repayment when CFADS does not cover interest. The MIN(Debt_Open, ...) stops the sweep from repaying more than is owed. Both limits are safe here. They only create trouble in a circular model, because they make the loop nonlinear.
A worked example
Take an opening balance of 500, CFADS of 100 and a rate of 8%.
- Interest is 8% × 500 = 40.
- Cash left for repayment is 100 − 40 = 60.
- The closing balance is 500 − 60 = 440.
Average-balance interest on the same inputs, solved earlier in the tutorial, gives interest of 37.5 and a closing balance of 437.5. The opening-balance method charges 2.5 more interest. It overstates interest because the debt was falling during the period, so the true average balance is lower than the opening balance.
A multi-period schedule you can run
The Python below mirrors the spreadsheet logic. Each year reads only the prior year's closing balance.
def opening_balance_schedule(opening, cfads_by_year, rate):
rows = []
balance = opening
for year, cfads in enumerate(cfads_by_year, start=1):
interest = rate * balance
repayment = min(balance, max(0.0, cfads - interest))
closing = balance - repayment
rows.append((year, balance, interest, repayment, closing))
balance = closing
return rows
schedule = opening_balance_schedule(500.0, [100, 110, 120, 130, 140], 0.08)
print("year opening interest repayment closing")
for year, op, i, r, c in schedule:
print(f"{year:>4} {op:8.2f} {i:9.2f} {r:10.2f} {c:8.2f}")The output is:
year opening interest repayment closing
1 500.00 40.00 60.00 440.00
2 440.00 35.20 74.80 365.20
3 365.20 29.22 90.78 274.42
4 274.42 21.95 108.05 166.37
5 166.37 13.31 126.69 39.68There is no loop and no convergence test. The schedule is exact for the stated convention, with no tolerance and no iteration count.
How large is the approximation?
The opening-balance convention is a modelling choice, not a mistake, but you should know the size of the difference. For a sweep loan, the opening-balance interest exceeds the average-balance interest by roughly the rate times half the repayment. In the example, 8% × 60 / 2 = 2.4, close to the exact gap of 2.5.
Three things drive the gap:
| Driver | Effect on the gap |
|---|---|
| Higher interest rate | Gap grows in proportion |
| Larger repayment relative to the balance | Gap grows, because the balance moves more within the period |
| Shorter period (quarterly instead of annual) | Gap shrinks, because less changes within each period |
Moving from annual to quarterly or monthly periods is a common way to keep the opening-balance convention while shrinking the error. The cost is more columns.
The bias has a direction. When debt is falling, opening-balance interest is too high. When debt is rising, for example a revolver drawn to fund a deficit, it is too low. In a downside case, a model that understates interest on a growing revolver is the one that flatters the result when it should be conservative.
Items that can use an average without a loop
A loop forms only when a balance depends on cash generated in the same period. Flows that are fixed in advance can still be averaged. Scheduled drawdowns and scheduled amortization are inputs, so they do not depend on interest.
Interest: = Rate * (Debt_Open + 0.5 * (Scheduled_Drawdown - Scheduled_Amort))This formula has no circularity because it reads only inputs and the opening balance. It captures part of the within-period movement. Only the sweep-driven repayment is left out, since that is the part that depends on interest.
This is useful when a facility is drawn partway through a period. If you use a pure opening balance, a drawdown in the first period earns no interest at all, because the opening balance is zero. Adding half of the scheduled drawdown corrects that, while the loop stays closed.
Other places the same rule applies
Interest on debt is the most common loop, but the same principle fixes related ones:
- Interest income on cash. Use the opening cash balance. The closing cash balance depends on net income, which includes the interest income.
- Commitment fees on undrawn revolver. Use the opening undrawn amount. The closing drawn amount depends on cash flow after fees.
- Cash taxes. CFADS is often after tax, and tax depends on interest. With opening-balance interest this causes no loop, because interest is already known when tax is calculated. With average-balance interest, tax joins the loop and makes it longer.
Verifying that the model has no loop
You can prove the model is loop-free rather than assume it.
- Turn iterative calculation off (File, Options, Formulas, clear "Enable iterative calculation").
- Recalculate the workbook. If any circular reference exists, Excel shows a warning and often a status-bar message naming a cell.
- Run Formulas, Error Checking, Circular References to list the cells involved.
With iteration off, an accidental loop is flagged instead of silently converging. Keep iteration off as the default for any model that is meant to be loop-free. Many workbooks have iteration switched on from an earlier project, and that setting hides accidental loops.
Common errors
- Referencing the closing balance by mistake. Writing
Rate*Debt_Closeinstead ofRate*Debt_Openbrings the loop back. This often happens when someone copies a row from the average-balance version. - Using the wrong column for the opening balance. The opening balance must reference the previous column's closing balance. Pointing it at the same column's closing balance creates a loop through the opening line.
- Leaving the first period unlinked. The first opening balance must be an input or an opening balance sheet figure. A formula that refers forward breaks the pattern.
- Mixing conventions. If senior debt uses opening balances and a revolver uses averages, the revolver still forms a loop. Apply the chosen convention to every line, or document the exceptions.
When to prefer this method
Choose opening-balance interest when the model must be robust and easy to audit, when users will share the file widely, or when periods are short enough that the approximation is small. Accept an iterative or algebraic method instead when the loan agreement specifies average-balance interest and the difference is material to covenants or returns. The final chapter returns to this decision with all four approaches side by side.
Exercise
A loan has an opening balance of 800, CFADS of 150 and a rate of 6%. Using opening-balance interest, find interest, repayment and the closing balance. Then compare with the average-balance interest of about 44.85 and say which method gives the higher interest and by roughly how much.
Show answer
Interest = 0.06 × 800 = 48. Repayment = MIN(800, MAX(0, 150 − 48)) = 102. Closing balance = 800 − 102 = 698. Opening-balance interest (48) is higher than the average-balance interest (about 44.85) by about 3.15, because the debt falls during the period and the opening balance overstates the average. The rough estimate rate × repayment / 2 = 0.06 × 102 / 2 = 3.06 is close to the exact gap.
Exercise
A revolver is drawn to cover a deficit, so its balance grows during the period. If the model charges interest on the opening balance, does it overstate or understate interest, and why does this matter for a downside case?
Show answer
It understates interest, because the average balance during the period is higher than the opening balance. In a downside case the revolver grows the most, so the model understates the cost at the point where it matters most and makes the downside look milder than it is.
Exercise
A term loan has a scheduled drawdown of 200 during the year and no cash sweep. Can you charge interest on the average balance without creating a circular reference? Write the formula.
Show answer
Yes. The drawdown is an input that does not depend on interest, so averaging it creates no loop. Interest = Rate (Debt_Open + 0.5 ScheduledDrawdown), which here is Rate * (DebtOpen + 100).