Sub topic 5
Building the Calculations Layer
This chapter assumes you can use cell references and simple formulas, understand percentages and time periods, and read basic financial statements. You will build the middle layer of a financial model: the calculations that transform assumptions into results.
What belongs in the calculations layer
The calculations layer contains formulas, not business assumptions entered by a user and not presentation-only summaries. Each formula should explain how an output follows from the inputs.
For a simple income statement, the calculation flow might be:
| Calculation | Formula relationship |
|---|---|
| Revenue | Prior-year revenue × (1 + growth rate) |
| Gross profit | Revenue × (1 − COGS percentage) |
| EBIT | Gross profit − operating expenses |
| Tax | Positive EBIT × tax rate |
EBIT means earnings before interest and taxes. COGS means cost of goods sold.
Keep the calculation layer separate from the inputs layer. If a growth assumption changes, you should change one input cell rather than search through many formulas.
# Inputs: assumptions are stored outside the calculation logic.
inputs = {
"revenue_year1": 1_000_000,
"growth_rate": 0.10,
"cogs_pct": 0.60,
"opex": 150_000,
"tax_rate": 0.25,
"years": 3,
}
def calculate(inp):
rows = []
revenue = inp["revenue_year1"]
for year in range(1, inp["years"] + 1):
if year > 1:
revenue *= 1 + inp["growth_rate"]
gross_profit = revenue * (1 - inp["cogs_pct"])
ebit = gross_profit - inp["opex"]
tax = max(ebit, 0) * inp["tax_rate"]
rows.append({
"year": year,
"revenue": revenue,
"gross_profit": gross_profit,
"ebit": ebit,
"net_income": ebit - tax,
})
return rows
for row in calculate(inputs):
print(
f"Year {row['year']}: "
f"revenue={row['revenue']:,.0f}, "
f"EBIT={row['ebit']:,.0f}, "
f"net income={row['net_income']:,.0f}"
)Use one formula across the time axis
A time axis is the row or column sequence for periods such as 2026, 2027, and 2028. Build each row so the same logic applies in every period.
For example, if years run across columns, a revenue formula might be:
= D10 * (1 + Inputs!$C$5)Copying this formula to the right changes D10 to the previous period's revenue while keeping the growth assumption fixed at Inputs!$C$5. The dollar signs create an absolute reference, which does not move when the formula is copied.
Avoid changing the formula manually for one year unless the model has a documented event, such as a planned acquisition. A one-off formula can hide an error and make later updates unreliable.
Make the flow visible
Arrange calculations in dependency order. Revenue should appear before gross profit, and gross profit should appear before EBIT. This makes the model easier to trace and review.
Check the layer before publishing results
The outputs layer should summarize calculations without adding new financial logic. Before linking to it, check that revenue rolls forward correctly, margins use the intended denominator, and taxes do not become negative when the model assumes no tax benefit.
Exercise
A revenue row uses 10% in the first forecast year and 12% in the second year because the author typed a new percentage into the second formula. What structural change should you make?
Show answer
Put both assumptions in labeled input cells, then reference the appropriate input cell from each period. If the assumption should be constant, use one absolute reference and copy the same formula across the row.