Sub topic 10
Building the inventory schedule
This chapter assumes you can compute days sales outstanding (DSO) and days payable outstanding (DPO) from the earlier chapters. It also assumes you have a cost of goods sold (COGS) forecast, and that you can read short Python or spreadsheet formulas. Here you turn an inventory days assumption into forecast inventory balances and the cash they absorb.
What the schedule does
The inventory schedule takes two inputs per forecast period: forecast COGS and a forecast for days inventory outstanding (DIO). It produces three outputs:
- The ending inventory balance for the balance sheet.
- The change in inventory since the prior period.
- The cash flow effect of that change, which feeds the net working capital total.
DIO is driven by COGS, not revenue. Inventory is carried at cost, so the flow that empties it is the cost of the goods sold.
The formula
Rearrange the historical DIO definition to solve for the balance:
Ending inventory = COGS × DIO / days in periodFor a year on a 365-day basis, COGS of 660 and DIO of 60 give 660 × 60 / 365 = 108.5.
Check the base year first. With COGS of 540 and ending inventory of 88.8, historical DIO is 88.8 / 540 × 365 = 60.0. If your forecast uses the same basis as this check, a flat 60-day assumption will not create a jump between the last actual year and the first forecast year. Mixing bases here is the most common way to produce a jump that has nothing to do with the business.
Setting the forecast DIO
Use history as the starting point, then adjust only for a reason you can state:
- Flat days. If the last three years sit near 60, hold 60. This is the default when you have no evidence of change.
- Trend. If DIO fell from 66 to 63 to 60 because of better planning, you can continue the trend for a year or two. Do not extrapolate it indefinitely, because inventory cannot reach zero days.
- Business reasons. A new distribution center, a switch to just-in-time suppliers, a product mix shift toward slower-moving items, or a planned stock build before a launch each justify a specific change. Write the reason next to the assumption.
- Seasonality. Year-end DIO may be unrepresentative if the business builds stock before a peak season. Compare with a quarterly or average-based figure before you hold the year-end value flat.
A runnable schedule
The function below builds the schedule with ending balances. It starts from an opening balance and accepts a DIO for each period.
def inventory_schedule(cogs, dio, opening_inventory, days=365):
"""Return one row per period using ending-balance DIO."""
rows = []
prior = opening_inventory
for year, (c, d) in enumerate(zip(cogs, dio), start=1):
ending = c * d / days
change = ending - prior
rows.append(
{
"year": year,
"cogs": c,
"dio": d,
"ending": ending,
"change": change,
"cash_effect": -change,
}
)
prior = ending
return rows
cogs = [600.0, 660.0, 726.0]
dio = [60, 60, 60]
for r in inventory_schedule(cogs, dio, opening_inventory=88.8):
print(
f"Year {r['year']}: DIO {r['dio']}, COGS {r['cogs']:.1f}, "
f"ending {r['ending']:.1f}, change {r['change']:.1f}, "
f"cash effect {r['cash_effect']:.1f}"
)The output is:
Year 1: DIO 60, COGS 600.0, ending 98.6, change 9.8, cash effect -9.8
Year 2: DIO 60, COGS 660.0, ending 108.5, change 9.9, cash effect -9.9
Year 3: DIO 60, COGS 726.0, ending 119.3, change 10.8, cash effect -10.8With constant DIO, inventory grows in step with COGS. Each year the company ties up more cash in stock, so the cash effect is negative.
The average-balance trap
Some analysts define DIO on average inventory: DIO = average inventory / COGS × days. That is valid for analyzing history. Used in a forecast, it requires you to solve for the ending balance:
Ending = 2 × (COGS × DIO / days) − OpeningThis formula is sensitive to the opening balance. Any gap between the opening balance and the implied average is doubled and then carried into the next period. The sketch below shows it with the same inputs.
def inventory_average_basis(cogs, dio, opening_inventory, days=365):
balances = []
prior = opening_inventory
for c, d in zip(cogs, dio):
average = c * d / days
ending = 2 * average - prior
balances.append(ending)
prior = ending
return balances
ending_basis = [r["ending"] for r in inventory_schedule(cogs, dio, 88.8)]
average_basis = inventory_average_basis(cogs, dio, 88.8)
print("Ending basis:", [round(x, 1) for x in ending_basis])
print("Average basis:", [round(x, 1) for x in average_basis])The output is:
Ending basis: [98.6, 108.5, 119.3]
Average basis: [108.5, 108.5, 130.2]The average-basis balances go 108.5, 108.5, 130.2, a pattern that follows no business logic. The first year jumps by 19.7 and the second year is flat. The method works only if every historical and forecast DIO uses the same definition, and even then it can oscillate. Most forecast models use ending balances for this reason.
Edge cases and how to handle them
| Situation | Problem | Handling |
|---|---|---|
| Revenue used instead of COGS | Inventory is at cost, so the days figure is inflated by the gross margin and the forecast balance is wrong | Use COGS for DIO, and keep revenue for DSO |
| Different day counts (360 versus 365) | A 5-day gap in the basis shifts the balance by about 1.4 percent | Use one basis throughout, and keep DSO, DIO, and DPO on the same basis |
| Quarterly model | Annual days applied to quarterly COGS gives a balance that is about a quarter of the right size | Use the days in the quarter (such as 90) with that quarter's COGS, or annualize COGS and keep 365 |
| Leap years | 366 days changes the divisor slightly | Pick a convention and keep it, because the effect is small |
| Zero or tiny COGS | The ratio is undefined or unstable | Use a different driver, such as units or a percentage of revenue |
| COGS includes items that never touch inventory | Inventory looks too lean or too heavy | Where disclosures allow, strip out items such as depreciation that run through COGS |
| Several inventory classes | Raw materials, work in progress, and finished goods turn at different speeds | Forecast each class with its own days if the data is available, then sum |
Linking to the rest of the model
The schedule gives you one input to the statements. The ending balance goes on the balance sheet's inventory line. The cash effect, the negative of the change, goes into the cash flow statement under changes in working capital. Net working capital also needs the receivables and payables schedules, so the schedule's change feeds the sum rather than a stand-alone cash flow line.
An increase in inventory is a use of cash, so the cash flow sign is negative. A decrease releases cash and the sign is positive. If your balance sheet does not balance after you add the schedule, check the sign first.
Testing how sensitive inventory is to DIO
Each day of DIO is worth COGS / 365 in balance and in cash. That gives a fast way to size an assumption.
| Year | COGS | Value of one day of DIO |
|---|---|---|
| 1 | 600.0 | 1.6 |
| 2 | 660.0 | 1.8 |
| 3 | 726.0 | 2.0 |
If Year 3 DIO is 55 instead of 60, the ending balance is 5 × 2.0 = 9.9 lower, and the year releases about that much cash relative to the base case. As COGS grows, each day of DIO matters more, so a fixed improvement in days is worth more in later years.
Review checks
- The base-year DIO calculated from actuals matches the historical column of the schedule.
- The forecast balance for each year equals COGS × DIO / days.
- The change in inventory equals this year's ending balance minus last year's.
- The cash effect has the opposite sign to the change.
- The balance sheet inventory line equals the schedule's ending balance.
Exercise
A company has COGS of 800 and a DIO forecast of 45 days on a 365-day basis. Last year's ending inventory was 95. Compute this year's ending inventory, the change in inventory, and the cash flow effect.
Show answer
Ending inventory = 800 × 45 / 365 = 98.6. The change is 98.6 − 95.0 = 3.6, an increase. The cash flow effect is −3.6, because inventory growth uses cash.
Exercise
An analyst computes historical DIO as ending inventory divided by revenue, times 365. Revenue is 900, COGS is 540, and inventory is 88.8. What DIO does the analyst get, and what balance results if that DIO is applied to forecast COGS of 600? Why is this wrong?
Show answer
The analyst gets 88.8 / 900 × 365 = 36.0 days. Applied to COGS of 600, that gives 600 × 36 / 365 = 59.2, well below the correct 98.6 at 60 days. Inventory is carried at cost, so DIO must use COGS in both the historical calculation and the forecast. Using revenue understates DIO by the ratio of COGS to revenue (here 60 percent) and understates the balance.
Exercise
With COGS of 726 in Year 3, how much cash does it release or absorb if DIO is cut from 60 to 52 in that year, compared with holding 60?
Show answer
Each day is worth 726 / 365 = 1.99. Eight fewer days lowers ending inventory by about 8 × 1.99 = 15.9 relative to the base case. Cash flow is 15.9 higher than in the base case, because a lower inventory balance releases cash.