Sub topic 3
Interest circularity: causes, circuit-breaker switch, and iteration
This chapter assumes you can build a balance roll-forward, calculate interest on a balance, read the three financial statements, and model a cash sweep and revolver.
Why interest becomes circular
Interest on the average balance needs the closing balance. The closing balance depends on the cash sweep, and the sweep depends on cash left after interest. Interest therefore depends on itself. Spreadsheets report this as a circular reference.
You resolve it by iterating: guess interest, compute the sweep, recompute interest, and repeat until the value stops changing.
def sweep_with_average_interest(open_bal, rate, cash_before_interest, tol=1e-9, max_iter=100):
interest = open_bal * rate # first guess uses the opening balance
close = open_bal
for _ in range(max_iter):
sweep = max(0.0, min(open_bal, cash_before_interest - interest))
close = open_bal - sweep
new_interest = rate * (open_bal + close) / 2
if abs(new_interest - interest) < tol:
interest = new_interest
break
interest = new_interest
return interest, close
interest, close = sweep_with_average_interest(100, 0.10, 30)
print(round(interest, 4), round(close, 4)) # 8.9474 78.9474Circuit-breaker switch
Add a switch cell to the model. When the switch is 0, interest uses the opening balance, which removes the loop. When it is 1, interest uses the average balance.
Use the switch when errors spread through the model. Set it to 0 to flush the errors, then set it back to 1.
> Note: the switch changes results. Keep the opening-balance setting for drafts only.
Floating rates, spreads, and floors
The all-in rate is the greater of the base rate and the floor, plus the spread. With a base rate of 2.5%, a floor of 1.0%, and a spread of 3.5%, the all-in rate is 6.0%. If the base rate falls to 0.5%, the floor applies and the rate is 4.5%.
Several tranches and seniority
Cash repays senior debt first. A revolver is usually senior and secured, so it is repaid first. The cash sweep then applies to term loan A before subordinated notes.
Financing fees
An upfront fee reduces the carrying value of the debt. The model amortizes it into interest expense over the loan term. For example, a $20 fee on a five-year loan adds $4 of non-cash interest expense each year. Add this amortization back in the cash flow statement.
Linking to the three statements
Interest expense reduces net income on the income statement. Closing debt balances appear as liabilities on the balance sheet. Draws and repayments appear in the financing section of the cash flow statement, and the ending cash balance feeds the balance sheet. Assets must equal liabilities plus equity in every period.
Leverage and coverage ratios
Leverage is total debt divided by EBITDA. Interest coverage is EBITDA divided by cash interest. With debt of 300, EBITDA of 60, and cash interest of 24, leverage is 5.0x and coverage is 2.5x.
Exercise
A loan of 200 accrues interest on the average balance at 8%. The cash available before interest is 30. Should you use the circuit-breaker switch set to opening balance when you first build the model, and why?
Show answer
Yes. Start with the opening-balance setting to avoid the loop while you check the structure. Then switch to average-balance interest and confirm the iteration converges.