Sub topic 14
Finding and fixing an imbalance
This chapter assumes you have built the full three-statement link described in earlier chapters. That means net income flows to retained earnings and to the cash flow statement, schedules feed the balance sheet, and ending cash comes from the cash flow statement. You should also be able to read a balance check line. Here you will learn how to turn a failed check into a located, fixed error.
What the imbalance tells you
The balance check is the difference between total assets and total liabilities plus equity:
difference = total assets - (total liabilities + total equity)A nonzero difference is a clue. It has a sign and a size, and both narrow the search.
- Positive difference: assets are too high, or liabilities and equity are too low.
- Negative difference: assets are too low, or liabilities and equity are too high.
- Size equal to a single line item: the item was left out, or was counted on one side only.
- Size equal to twice a line item: the item has the wrong sign. A flipped sign moves the total by the item twice, once to remove the correct amount and once to add the wrong one.
- Size equal to half a line item: a percentage or averaging error is likely.
- Size that matches nothing: several errors are probably mixed together, or a hardcoded number is stale.
Cash is the usual place where an error shows up. Every cash flow line has a matching balance sheet line, so an error in the cash flow statement changes ending cash and breaks the balance. Cash is rarely where the error was made.
A systematic procedure
Work from the broadest test down to a single cell. Do not start by rereading every formula.
- Find the first failing period. Errors propagate forward. Fix the earliest period first, because later failures often disappear on their own.
- Test the opening balance sheet. If the opening column does not balance, no forecast logic can repair it.
- Test the cash tie. Balance sheet cash must equal opening cash plus net change in cash from the cash flow statement.
- Test each roll-forward. Opening plus additions minus reductions must equal closing for retained earnings, PP&E, and debt. Add working capital by checking that each cash flow line equals the sign-adjusted balance change.
- Match the difference to line items using the size rules above.
- Fix one error at a time and recheck. Fixing two at once hides which change worked.
Common causes
| Symptom (difference = assets minus L+E) | Likely cause |
|---|---|
| +2 × working capital change | Sign flipped on a receivables or payables line in operating cash flow |
| −capex | Capex in investing cash flow but not added to PP&E |
| +capex | Capex added to PP&E but not deducted in investing cash flow |
| −dividends | Dividends paid in cash but not subtracted from retained earnings |
| −debt repayment | Repayment in financing cash flow but debt balance not reduced |
| ± depreciation | Depreciation missing from either the add-back or the PP&E roll-forward |
| ± net income | Net income not linked to retained earnings, or not the starting line of cash flow |
| Changes with each period | Opening balance links to the wrong column, or a hardcode overwrote a formula |
Matching a difference to line items in code
The script below reuses the one-period model from earlier in the tutorial. It lets you inject a single error, computes the difference, and lists the items whose size matches it. It is the same reasoning you would apply by hand.
def build(error=None):
opening = {"cash": 100.0, "ar": 50.0, "ppe": 200.0,
"ap": 30.0, "debt": 120.0, "equity": 200.0}
tax_rate, interest_rate = 0.25, 0.08
revenue, operating_costs = 500.0, 380.0
depreciation, capex = 20.0, 30.0
dividends, debt_repayment = 20.0, 10.0
ar_close, ap_close = 60.0, 35.0
interest = interest_rate * opening["debt"]
pretax = revenue - operating_costs - depreciation - interest
net_income = pretax * (1 - tax_rate)
ar_effect = -(ar_close - opening["ar"])
ap_effect = ap_close - opening["ap"]
if error == "ar_sign":
ar_effect = -ar_effect
cfo = net_income + depreciation + ar_effect + ap_effect
cash_close = opening["cash"] + cfo - capex - debt_repayment - dividends
ppe = opening["ppe"] + capex - depreciation
if error == "capex_missing_in_ppe":
ppe = opening["ppe"] - depreciation
debt = opening["debt"] - debt_repayment
if error == "repayment_not_in_debt":
debt = opening["debt"]
equity = opening["equity"] + net_income - dividends
if error == "dividend_not_in_equity":
equity = opening["equity"] + net_income
assets = cash_close + ar_close + ppe
liab_equity = ap_close + debt + equity
items = {"AR change": 10.0, "AP change": 5.0, "capex": capex,
"depreciation": depreciation, "dividends": dividends,
"debt repayment": debt_repayment, "net income": net_income}
return assets - liab_equity, items
def suspects(diff, items):
found = []
for name, amount in items.items():
for label, factor in (("1x", 1), ("2x", 2), ("0.5x", 0.5)):
if abs(abs(diff) - factor * amount) < 0.005:
found.append(f"{name} ({label})")
return found
for err in (None, "ar_sign", "capex_missing_in_ppe",
"repayment_not_in_debt", "dividend_not_in_equity"):
diff, items = build(err)
print(err, round(diff, 2), suspects(diff, items))With no error the difference is 0.0 and the suspect list is empty. With ar_sign the difference is +20.0, which matches the receivables change at 2x. It also matches dividends and depreciation at 1x, and debt repayment at 2x.
The list shows candidates, not answers. When several items share a size, use the sign and your knowledge of which links you changed recently to choose between them.
Isolating the error with sub-checks
A single balance check is a coarse tool. Add narrow checks beside each schedule so the failing one points at the area.
- Cash tie: balance sheet cash minus cash flow statement ending cash. It should be zero.
- Retained earnings: closing equals opening plus net income minus dividends.
- PP&E: closing equals opening plus capex minus depreciation.
- Debt: closing equals opening plus draws minus repayments.
- Working capital: each cash flow line equals the sign-adjusted change in its balance.
If every sub-check is zero but the main check fails, the error is outside the schedules. Look at a balance sheet line that has no schedule, such as other assets, or at an opening balance. If a sub-check fails, the error is in that schedule or in its link to the cash flow statement.
Pitfalls that hide errors
- Offsetting errors. Two errors of equal size and opposite sign cancel, and the check passes. Sub-checks catch these because each schedule is tested on its own.
- Tolerance too loose. A check that accepts any difference under 1 can hide a small real error. Use a tolerance near floating-point noise, such as 0.001 for values entered in whole units.
- Rounding on display only. Round for presentation, not in the calculation. Rounded intermediate values create small differences that look like errors.
- Hardcoded overwrites. A typed number in a forecast row breaks the pattern and fails only when inputs change. Scan each row for cells whose formula differs from its neighbors.
- Checking only one scenario. Change an assumption, such as capex or the dividend, and confirm the check stays at zero. A link that is wrong but happens to net out at base values will fail here.
Summary of the method
Read the sign and the size of the difference first. Find the earliest failing period. Run the narrow checks to find the failing schedule. Match the difference to line items at 1x, 2x, and 0.5x. Fix one error, then test again with changed assumptions.
Exercise
In a one-period model, total assets are 362.8 and total liabilities plus equity are 392.8. Capex of 30 appears in investing cash flow. Which error explains the gap, and which sub-check would have caught it?
Show answer
The difference is −30, which equals capex at 1x. Capex reduced cash through investing cash flow, but it was not added to PP&E, so assets are 30 too low. The PP&E roll-forward check (closing equals opening plus capex minus depreciation) would have caught it.
Exercise
A model's payables rise from 30 to 35, but the operating cash flow line subtracts the 5 increase instead of adding it. What is the balance check difference (assets minus liabilities plus equity), and what rule helps you spot this?
Show answer
Cash is 10 too low: it should have gone up by 5 but went down by 5. Assets are therefore 10 too low and the difference is −10, which is 2 × 5. A difference equal to twice a line item points to a flipped sign. An increase in a liability provides cash, so the line should be +5.