Sub topic 15
Interest on Average Balances and Circular References
This chapter covers why interest on average debt balances makes a model circular, how to solve that loop, and where it breaks. It assumes you have built the debt schedule, financing cash flows, and ending cash reconciliation from earlier chapters. It also assumes you are comfortable with spreadsheet cell references and formulas.
Why average balances create a loop
The simplest interest formula uses the opening balance:
Interest = Rate x Opening debtThe opening balance is last period's closing balance, so it is already known. Nothing in the current period can change it, and the model flows in one direction.
Debt changes during the period, though. If the company repays debt in the middle of the year, interest accrues on a smaller balance for part of the year. The average-balance formula approximates this:
Interest = Rate x (Opening debt + Closing debt) / 2This is usually more accurate. It also creates a dependency chain:
- Interest expense lowers net income.
- Net income feeds cash flow from operations.
- Cash flow from operations determines how much cash is available.
- Available cash can determine debt repayment, for example through a cash sweep or a revolver draw.
- Repayment sets closing debt.
- Closing debt sets average debt, which sets interest expense.
Step 6 feeds step 1, so the model is circular.
When there is no loop
Average-balance interest is not circular by itself. If repayment is a fixed schedule, such as 40 per year regardless of cash, closing debt is known before interest is computed. The loop appears only when the debt movement depends on cash generated in the same period. Typical sources are:
- A cash sweep, where a percentage of free cash flow repays debt.
- A revolver that draws to cover a cash shortfall or repays from a surplus.
- Interest income on average cash balances, because cash depends on net income.
A worked example
Reuse the one-period company from earlier in the tutorial: revenue 500, COGS 300, operating expenses 100, depreciation 20. Operating profit (EBIT) is 80. Opening debt is 100 at 5%, and the tax rate is 20%.
Other cash items for the period are:
- Depreciation add-back: +20
- Increase in accounts receivable: -10
- Increase in accounts payable: +5
- Capex: -30
- Dividends: -20
These sum to -35. The company sweeps all remaining cash into debt repayment, so:
Repayment = Net income - 35The loop is now explicit. Net income depends on interest, interest depends on closing debt, and closing debt depends on repayment, which depends on net income.
The Python below solves it by repeating the calculation until the repayment stops changing. It also shows what opening-balance interest would give.
def solve(use_average, rate=0.05, tax_rate=0.20, tol=1e-9, max_iter=100):
opening_debt = 100.0
ebit = 80.0
other_cash_items = 20 - 10 + 5 - 30 - 20 # D&A, AR, AP, capex, dividends
repay = 0.0 # starting guess
for _ in range(max_iter):
closing_debt = opening_debt - repay
if use_average:
interest = rate * (opening_debt + closing_debt) / 2
else:
interest = rate * opening_debt
net_income = (ebit - interest) * (1 - tax_rate)
new_repay = min(opening_debt, max(0.0, net_income + other_cash_items))
if abs(new_repay - repay) < tol:
repay = new_repay
break
repay = new_repay
else:
raise RuntimeError("Did not converge")
return interest, net_income, repay
for label, flag in [("Opening balance", False), ("Average balance", True)]:
interest, ni, repay = solve(flag)
print(f"{label}: interest={interest:.2f} net income={ni:.2f} repayment={repay:.2f}")The output is:
Opening balance: interest=5.00 net income=60.00 repayment=25.00
Average balance: interest=4.36 net income=60.51 repayment=25.51Average-balance interest is lower because the company repays about 25.5 during the period. You can check the result algebraically:
Interest = 0.05 x (100 + (100 - R)) / 2 = 5 - 0.025R
Net income = 0.8 x (80 - Interest) = 60 + 0.02R
R = Net income - 35 = 25 + 0.02R
R = 25 / 0.98 = 25.51A spreadsheet with iterative calculation enabled does the same thing as the Python loop. Each recalculation pass uses the previous pass's values, and the numbers settle.
Why it converges
Each pass changes repayment by a factor of 0.02. That factor is the interest rate, halved because of the average, times one minus the tax rate: 0.05 / 2 x 0.8. A change in repayment moves interest by only a small fraction of itself, and the effect on the next repayment is smaller still. The error shrinks by roughly 98% per pass, so a handful of iterations is enough.
Iteration converges whenever this feedback factor is below 1 in absolute value. For realistic interest rates and tax rates it always is. Models that fail to converge nearly always have a formula error, not an unstable economic loop.
Ways to manage the circularity
| Approach | How it works | Trade-off |
|---|---|---|
| Opening-balance interest | Interest uses last period's closing debt | No loop. Overstates interest when debt falls and understates it when debt rises. |
| Fixed repayment schedule | Closing debt does not depend on current cash | No loop. Less realistic for sweeps and revolvers. |
| Iterative calculation | The spreadsheet recalculates until values settle | Accurate and simple. Fragile if errors enter the loop. |
| Algebraic solution | Solve the loop in closed form, as above | No loop and exact. Hard to maintain once the model has many features. |
| Copy-paste macro | A macro pastes values into the interest cell until stable | Avoids iterative settings. Needs macros and can go stale. |
For a model that others will use, many practitioners accept the circularity and add safeguards. Others avoid it with opening-balance interest, accepting a small loss of accuracy for a more stable model. Choose based on how much the difference matters. On modest debt balances, the gap between the two methods is often smaller than the uncertainty in the forecast itself.
Enabling iterative calculation
In Excel, turn on iterative calculation under File > Options > Formulas. The defaults are 100 maximum iterations and a maximum change of 0.001. The setting belongs to the workbook session, not the file. If someone opens your model while another workbook with the setting off is already open, Excel warns about a circular reference and may show zeros. Tell users to check the setting.
Add a circuit breaker
A circuit breaker is a switch cell that lets you cut the loop. Wrap the interest formula in it:
Interest = IF(Breaker = 1, 0, Rate x AVERAGE(Opening debt, Closing debt))When the breaker is 1, interest is forced to 0 and the loop is cut. Set it back to 0 and the model recalculates normally.
Failure modes
Errors that get stuck
If an error such as #VALUE! or #DIV/0! enters the loop, every cell in the loop references an error cell, so the error sustains itself. Fixing the original cause does not clear it. Turn the breaker on, let the errors flush out, fix the cause, then turn the breaker off.
Divergence and wandering values
If numbers grow without bound or oscillate, check for a sign error in the loop, for example a repayment that increases when interest rises. Also check for a rate entered as 5 instead of 0.05, which makes the feedback factor larger than 1.
Hidden circularities
Interest income on average cash balances adds a second loop through the cash reconciliation. A revolver adds a third, because its draw depends on cash after all other flows. Each loop is individually convergent, but together they make the model harder to debug.
Balance check after iteration
The balance check should still equal zero once the loop settles. A small non-zero residual, for example 0.0004, usually means iteration stopped before full convergence, since the default tolerance is 0.001. Increase the iteration count or tighten the maximum change. A larger imbalance is not a convergence problem. Use the troubleshooting steps from the earlier chapter instead.
Exercises
Exercise
A company has opening debt of 200 at a 6% interest rate. It repays a fixed 40 during the year according to a schedule. Compute interest on the average balance, and explain whether the model is circular.
Show answer
Closing debt is 200 - 40 = 160. Average debt is (200 + 160) / 2 = 180, so interest is 0.06 x 180 = 10.80. The model is not circular, because the repayment is fixed and does not depend on net income or cash, so closing debt is known before interest is calculated.
Exercise
In the worked example, the sweep repays all cash after other items. Suppose the interest rate rises to 10% and the tax rate stays at 20%. Compute the feedback factor and say whether iteration converges.
Show answer
The feedback factor is rate / 2 x (1 - tax rate) = 0.10 / 2 x 0.8 = 0.04. It is far below 1 in absolute value, so iteration converges, slightly more slowly than at 5% but still in a few passes.
Exercise
After you fix a formula error in a circular model, the interest cell still shows #VALUE!. What happened, and what is the standard fix?
Show answer
The error is stuck in the loop. Each cell in the loop references another cell that holds the error, so the error feeds itself even after the cause is fixed. Turn the circuit breaker on so interest becomes 0, let the errors clear, then turn the breaker off and let the model recalculate.