Sub topic 11
Checking that the Circular Solution Is Consistent
Assume you can build a debt schedule, calculate cash flow available for debt service (CFADS), and use Excel formulas such as IF, MIN, MAX, and AVERAGE. You should also understand the difference between opening-balance and average-balance interest.
A circular model can display a number without being correct. Validation must show that the number satisfies the debt roll-forward, the interest formula, the cash sweep rules, and the convergence requirement.
Start with the debt roll-forward
The basic identity is:
Debt_Close = Debt_Open - Repayment + Draw
For a simple cash sweep with no new draw, the check is:
Debt_Open - Repayment - Debt_Close = 0
In Excel, place this in a check column:
=Debt_Open - Repayment + Draw - Debt_CloseA result of zero means the balance rolls forward exactly. Because spreadsheet calculations use floating-point arithmetic, a very small residual can be acceptable. Use a tolerance rather than testing only for exact equality:
=ABS(Debt_Open - Repayment + Draw - Debt_Close) < 0.01The tolerance should match the model's units. A tolerance of 0.01 may be reasonable for a model stated in whole currency units, but too large for a model stated in millions.
Check the cash sweep and interest equations
Interest should agree with the balance convention selected by the model.
For opening-balance interest:
=Rate * Debt_OpenFor average-balance interest:
=Rate * AVERAGE(Debt_Open, Debt_Close)Create a separate residual for each formula:
=Interest - Rate * AVERAGE(Debt_Open, Debt_Close)The residual should be within the chosen tolerance. This catches a common error where the schedule is labeled as using average balances but the formula still uses the opening balance.
Then check repayment. If all available cash after interest is swept to debt, repayment is usually:
=MIN(Debt_Open + Draw, MAX(0, CFADS - Interest))The MIN prevents repayment from exceeding the debt balance. The MAX prevents negative cash after interest from becoming a negative repayment. Test both limits with separate scenarios:
- CFADS less than interest, so repayment should be zero.
- CFADS greater than interest but less than the debt balance, so repayment should equal the remaining cash.
- CFADS large enough to repay all debt, so repayment should equal the debt balance.
Test convergence, not just the displayed result
In an iterative calculation, Excel repeatedly updates the circular cells. The important measure is the change between passes:
Change = New_Interest - Previous_Interest
A practical convergence check is:
=ABS(New_Interest - Previous_Interest) < ToleranceYou should also inspect the iteration count and the final residuals. A model that reaches the iteration limit before the change falls below tolerance has not converged, even if the displayed values look plausible.
For the simple example with opening debt of 500, CFADS of 100, and an 8% rate, the converged average-balance result is interest of 37.5 and closing debt of 437.5. The following code verifies the key identities:
opening = 500.0
cfads = 100.0
rate = 0.08
interest = 37.5
closing = 437.5
repayment = cfads - interest
tolerance = 1e-9
assert abs(closing - (opening - repayment)) < tolerance
assert abs(interest - rate * (opening + closing) / 2) < tolerance
assert abs(repayment - 62.5) < tolerance
print("All consistency checks passed.")Use scenario and switch checks
A circularity switch should produce a deliberate, understandable change. With the switch off, interest might use the opening balance. With the switch on, it might use the average balance. Check both modes and confirm that the switch does not change unrelated formulas.
Also test boundary cases:
- Zero debt.
- Zero interest rate.
- No CFADS.
- CFADS greater than the debt balance.
- A draw that occurs during the period.
- Negative or missing input values.
A switch that clears an error but leaves stale values in the circular cells is not a valid circuit breaker. Recalculate after changing the switch and verify that every dependent cell changes according to its formula.
A compact validation sequence
Run the checks in this order. Convergence confirms that the iteration stopped. Formula checks confirm what it solved. Roll-forward checks confirm that the schedule balances. Scenario checks confirm that the formulas behave correctly outside the base case.
Exercise
An iterative model has an interest change of 0.0004, a tolerance of 0.001, an interest residual of 0.02, and a roll-forward residual of zero. Is the circular solution consistent?
Show answer
No. The iteration converged because 0.0004 is below 0.001, and the debt roll-forward balances. However, the interest residual of 0.02 exceeds the tolerance if the same 0.001 tolerance applies. Check the interest formula or the referenced balances.