Lesson 5: Build a 13-week cash forecast and stress it with AI

Published by

on

The Pragmatic CFO: practical finance for the AI era

TL;DR Have AI build a 13-week cash forecast as live formulas you can audit, prove every week ties, then stress it with late-paying customers. In our sample company, a 20% two-week slip in collections pushes cash below the $500,000 covenant in weeks 5 and 7. The forecast is only worth building if it ends in a decision, so this lesson ends with one.

What you’ll practice

  • Getting an AI assistant to build a 13-week cash forecast as a spreadsheet of formulas, not a paragraph of prose.
  • Proving the forecast ties: opening cash plus collections minus disbursements equals ending cash, every week, with control totals.
  • Running a late-collections scenario, finding the covenant breach weeks, and turning the gap into a decision.

Time: about 30 minutes. You need the free sample workbook (Excel) and any AI assistant that can read an uploaded spreadsheet. Larkspur Supply Co. is a made-up company and every number in the file is invented, so it is safe to upload anywhere.

Why a sheet, not a story

Ask an AI “what does our cash look like next quarter?” and you get a confident paragraph. You can’t audit a paragraph, change one assumption in it, or hand it to a lender.

Our view: the AI’s job is to build the grid (weeks across, sources and uses down, ending cash at the bottom) with formulas that point back to the inputs. Your job is to check the grid and make the call. For background, see our guides to a 13-week cash flow in a PE-backed business and a rolling 13-week cash flow with AI.

The inputs you are working from

Open sheet 4_Cash_Inputs. Every number the forecast needs is on that one sheet, each with a timing rule beside it: receivables by aging bucket, new weekly billings, existing AP, inventory purchases, payroll, rent, a term loan payment and other costs. Week 1 starts Monday, October 5, 2026.

Two inputs matter most. Opening cash is $1,284,731.85, the reconciled book balance from lesson 4. And the covenant says cash must stay at or above $500,000 at every week end.

Step 1: Build the base forecast as formulas

  1. Upload the workbook and paste the prompt below (the five-line format from lesson 1).
  2. If your assistant can’t hand back a spreadsheet, ask for the table plus each row’s formula written out, and build it yourself. Either way, you want formulas you can inspect.
JOB: You are an FP&A analyst building a 13-week cash forecast for Larkspur Supply Co. (a made-up company).
DATA: The attached workbook, sheet 4_Cash_Inputs. US dollars. Week 1 starts Monday Oct 5, 2026. Opening cash is cell B2.
RULES: Apply each timing rule in column C exactly as written. Spread "evenly" means equal amounts in each listed week. Collect only half of the 61-90 day bucket and none of the 90+ bucket. New billings are first collected in week 5; new purchases are first paid in week 5. Payroll in odd weeks only. Do not add any cash item that is not on the sheet. If a rule is unclear, stop and ask me.
OUTPUT: A new sheet "13wk_Base". Weeks 1 to 13 as columns. Rows: opening cash; one row per collection source; total collections; one row per disbursement type; total disbursements; net cash flow; ending cash; covenant (500,000); headroom (ending minus covenant). Every cell after the inputs must be a formula that references 4_Cash_Inputs or another cell, not a typed number.
PROOF: Add a check row: opening + total collections - total disbursements - ending = 0 for every week. Give 13-week totals for collections and disbursements. Name the lowest week and its ending cash. List every assumption you made.

Step 2: Prove it ties before you read it

Check the plumbing before you read the low point.

  1. The roll-forward. Each week’s opening cash must equal the prior week’s ending cash, and the check row must be zero in all 13 columns.
  2. Collections control total. Existing receivables you expect to collect: 3,420,000 + 610,000 + 188,000 + 37,000 = $4,255,000. New billings collected in weeks 5 to 13: 9 x 1,180,000 = $10,620,000. Total: $14,875,000.
  3. Disbursements control total. Existing AP $3,330,000, new purchases 9 x 830,000 = $7,470,000, payroll 7 x 316,000 = $2,212,000, rent 4 x 155,000 = $620,000, term loan $210,000, other 13 x 78,000 = $1,014,000. Total: $14,856,000.
  4. Spot-check one week by hand. Week 1: 1,284,731.85 + 1,058,333 - 1,409,000 = $934,065. If the AI’s week 1 is different, find out why before you go further.

If the totals tie, the base case says: the low point is week 5 at $893,232, and week 13 ends at $1,303,732. Comfortable, on paper.

Step 3: Stress it with late payers

The base case assumes everyone pays on schedule. The scenario on the input sheet says your largest customers slow down: 20% of each week’s collections arrives two weeks later than planned.

JOB: Same FP&A analyst. Add a stress case to the forecast you just built.
DATA: Sheet 13wk_Base and the scenario row on 4_Cash_Inputs (row 16).
RULES: For every week, keep 80% of that week's base collections in the same week and move 20% two weeks later. Collections that would move past week 13 fall outside the forecast window; do not pull them back into week 13 and do not treat them as bad debt. Disbursements do not change. Keep the slip percent (20%) and the delay (2 weeks) in their own input cells so I can change them.
OUTPUT: A new sheet "13wk_Slip" with the same layout as 13wk_Base, plus a row that flags any week where ending cash is below 500,000. Then a short table: week, base ending cash, scenario ending cash, difference.
PROOF: Show that scenario collections plus collections pushed past week 13 equal base collections. Show the same check row (opening + collections - disbursements - ending = 0). Name every covenant breach week and the shortfall in dollars.

What you should see: cash drops below $500,000 in week 5 ($463,732) and again in week 7 ($454,032), which is the term loan week. Week 13 ends at $831,732. The gap to base at week 13 is $472,000, which is exactly the 20% of weeks 12 and 13 collections that slipped past the window. That cash isn’t lost. It lands after week 13, and the forecast should say so.

Step 4: Turn the gap into a decision

A forecast that stops at “we breach in week 5” hasn’t done its job. Have the AI size the gap and test the levers.

JOB: Same analyst, now preparing options for the CFO.
DATA: Sheet 13wk_Slip.
RULES: Use only the numbers in the workbook. Do not assume a revolver size, interest rate or vendor terms that are not in the file; mark anything I must confirm. Test each lever separately against the 500,000 covenant.
OUTPUT: A table with one row per lever: (1) a revolver draw before week 5 that stays drawn through week 7; (2) deferring one week of inventory payments by one week; (3) collecting the slipped receivables on time. Columns: lever, smallest amount that clears both breach weeks, which weeks it fixes, what I need to confirm.
PROOF: For each lever, show the new ending cash for weeks 5 and 7 and the formula you changed.

What the numbers say:

  • The shortfall is small. $36,268 at week 5 and $45,968 at week 7. Any fix must clear about $46,000 and be in place by week 5.
  • A revolver draw of at least $46,000, made before week 5 and held through week 7, clears both weeks. Sheet 6_KPIs shows nothing drawn today, but not the facility size or terms; confirm those in the credit agreement.
  • Deferring a purchase is a one-week patch. Pushing the $830,000 week 5 inventory payment to week 6 fixes week 5 only; week 7 is still short.
  • Calling the late payers attacks the cause. If the slipped 20% comes in on time, you are back to the base case.

Our call: line up the revolver draw now as the backstop, call the largest late payers this week, and treat supplier deferrals as the last lever, not the first. A $46,000 problem you see seven weeks out is a phone call. The same problem found in week 5 is a covenant conversation with your lender.

What a good answer looks like

Show the answer key

Base case. Opening cash $1,284,731.85. Dollars rounded to the nearest whole dollar.

WeekCollectionsDisbursementsEnding cash
11,058,3331,409,000934,065
21,105,333923,0001,116,399
31,105,3331,214,0001,007,732
4911,250883,0001,035,982
51,236,2501,379,000893,232 (low point)
61,189,250908,0001,174,482
71,189,2501,434,000929,732
81,180,000908,0001,201,732
91,180,0001,379,0001,002,732
101,180,000908,0001,274,732
111,180,0001,224,0001,230,732
121,180,000908,0001,502,732
131,180,0001,379,0001,303,732
Total14,875,00014,856,000

Scenario: 20% of each week’s collections arrives two weeks late. Disbursements are unchanged.

WeekCollectionsEnding cashBelow $500,000?
1846,667722,399No
2884,267683,665No
31,095,933565,599No
4950,067632,665No
51,210,067463,732Yes, short 36,268
61,133,650689,382No
71,198,650454,032Yes, short 45,968 (term loan week)
81,181,850727,882No
91,181,850530,732No
101,180,000802,732No
111,180,000758,732No
121,180,0001,030,732No
131,180,000831,732No
Total14,403,000

Tie-out: scenario collections $14,403,000 plus $472,000 pushed past week 13 equals base collections of $14,875,000. Week 13 ending cash is $472,000 lower than base for the same reason.

Where AI goes wrong on this task

Our view of the most common traps:

  • It writes prose instead of a model. A narrative with a few numbers can’t be audited. If the output has no formulas, send it back.
  • It grabs the wrong opening cash. The file mentions book cash and bank cash elsewhere. The forecast starts from the reconciled $1,284,731.85, and the prompt says so on purpose.
  • It collects money you said you wouldn’t. Watch the doubtful half of the 61 to 90 day bucket and the $41,000 over 90 days. Both should be zero in the base case.
  • It “fixes” the scenario’s ending balance. Collections that slip past week 13 get pulled back into week 13, or written off as bad debt. Neither is right: they are timing outside the window.
  • It tests the covenant on the wrong number. An average balance or the week 13 ending balance can look fine while two week ends breach. Check every week end.

What stays with a person

The AI can size the gap. It can’t call a customer, interpret your credit agreement, or decide to draw on a revolver. Whether a week-end dip is a breach depends on how your covenant is written and tested; that reading, and any conversation with the lender, belongs to you. Someone who owns the relationships signs off on which lever you pull.

For when you outgrow a spreadsheet, our guide to AI cash forecasting and treasury software covers what dedicated tools add. More guides live in our AI in finance hub.

Check yourself

Why does the forecast start from $1,284,731.85 and not the bank balance?

The bank balance misses outstanding checks and the deposit in transit; the unadjusted book balance misses the bank fee, interest and the check transposition. The reconciled balance from lesson 4 is the true starting position.

Why are there no collections from new billings in weeks 1 to 4?

New billings start in week 1 and are collected four weeks after billing, so the first cash arrives in week 5. Weeks 1 to 4 are funded by existing receivables. Inventory purchases follow the same four-week lag on the payment side.

The scenario’s week 13 is $472,000 below base. Is that cash lost?

No. It is 20% of the week 12 and week 13 collections ($236,000 each), which now land in weeks 14 and 15, outside the window. A good forecast says that in a note instead of treating it as a write-off.

Why doesn’t deferring one inventory payment from week 5 to week 6 solve the problem?

It lifts week 5 by $830,000, but by the end of week 6 the payment has gone out anyway, so week 6 ends where it did and week 7 is still $45,968 short. A deferral fixes one week; the term loan week needs its own fix.

What’s the smallest single action that clears both breach weeks?

About $46,000 of extra cash in place before week 5 and still there at the end of week 7, for example a revolver draw, assuming availability you confirm in the credit agreement. In practice you’d add a cushion above the bare minimum.

Your turn: try it on your own numbers

Run the same prompts on your own aging, AP schedule and payroll calendar, and swap in the risk you actually worry about: a big customer paying 30 days late, or a payroll week next to a debt payment. Before you upload anything real, reread lesson 1: company cash data only goes into a business or enterprise AI plan your company has approved.

Next: Lesson 6: Audit a spreadsheet model with AI before it reaches the board

New here? Start here to find the best guide for your job, or use the free finance templates, the CFO metrics library and the CFO moves tracker.