Treasury Track 2: Working capital levers with AI: DSO, DPO and inventory

Published by

on

The Pragmatic CFO: practical finance for the AI era

TL;DR Larkspur’s cash conversion cycle is 56.1 days, and each day of receivables is worth about 173,014 of cash. The AI computes DSO, DIO and DPO at October 31, then you work each lever: 381,425 from paying five vendors on terms instead of early, a 2/10 net 30 discount worth taking, the past-due accounts to call first and two slow-moving product classes, without stretching vendors already paid late or mistaking the snow-melt build for dead stock.

What you’ll practice

  • Computing DSO, DIO, DPO and the cycle, and turning each day into dollars.
  • Finding the real levers: vendors paid early, a skipped discount, past-due receivables and slow stock.
  • Keeping the AI honest on aging (days past due versus days from invoice) and seasonal inventory.

Time: about 35 to 45 minutes. You need the free Treasury Track workbook (Excel) and any AI assistant that can read an uploaded spreadsheet. Larkspur Supply Co. is a made-up industrial supply distributor (about $63 million revenue), and every customer, vendor and balance in the file is invented, so it is safe to upload.

The cash conversion cycle as three levers

The cash conversion cycle counts the days cash is tied up between paying for stock and collecting from customers:

  • DSO = receivables divided by trailing 12-month revenue, times 365.
  • DIO = inventory divided by trailing 12-month cost of goods sold, times 365.
  • DPO = payables divided by trailing 12-month cost of goods sold, times 365.
  • Cycle = DSO plus DIO minus DPO.

What a day is worth matters more than the days. A day of DSO is revenue divided by 365; a day of DIO or DPO is cost of goods sold divided by 365. That turns “collect faster” into a number. Our cash conversion cycle guide covers the concept, and the CFO metrics library has the definitions side by side.

In our view, one rule per lever. Receivables: collect on terms, calling by dollars and risk. Payables: pay on terms, not early and not late, unless a discount beats your cost of money. Inventory: separate the seasonal build from stock that is not selling.

The data

All balances are at October 31, 2026. 2_AR_Invoices lists 127 open invoices and credit memos with terms, invoice date, due date and amount. 2b_AR_Aging_PastDue buckets each customer by days past due. 2c_AP_Vendors has 13 vendors plus “all other”, with terms, average days to pay and annual spend. 2d_Inventory has stock and August to October cost of goods sold by class. 2e_WC_Inputs has trailing revenue, cost of goods sold and GL totals.

The prompts use the five-line format from the Workbench setup lesson: JOB, DATA, RULES, OUTPUT, PROOF.

Step 1: Compute the cycle and what a day is worth

JOB: You are the treasury analyst preparing Larkspur Supply Co.'s October 31, 2026 working capital summary.
DATA: Sheet 2e_WC_Inputs in the attached workbook. USD.
RULES: DSO = AR / trailing 12-month revenue x 365. DIO = inventory / trailing 12-month COGS x 365. DPO = AP / trailing 12-month COGS x 365. Cycle = DSO + DIO minus DPO. Use 365. One day of DSO = revenue / 365; one day of DIO or DPO = COGS / 365. Days to one decimal, dollars to whole dollars. Use only the numbers in the sheet.
OUTPUT: One table: measure, formula with inputs filled in, result, value of one day.
PROOF: Show each division before rounding and confirm each balance is marked "Ties to the GL".

Step 2: Receivables: who to call first

Mixing two aging methods is the commonest error here. Days past due counts from the due date. Days from invoice counts from the invoice date. A customer on 45-day terms who is 40 days past due is 85 days from invoice. Collections works in days past due; Larkspur’s borrowing base works in days from invoice, which is why Lesson 6 rebuilds the aging.

JOB: You are the credit manager building this week's collection call list.
DATA: Sheets 2_AR_Invoices and 2b_AR_Aging_PastDue, same file. As-of date October 31, 2026.
RULES: Days past due = October 31, 2026 minus due date. Do not use invoice date in this step. Rebuild the buckets (current, 1 to 30, 31 to 60, 61 to 90, over 90 past due) from the invoice list and tie them to 2b first. List credit memos separately. Rank customers by amount more than 30 days past due. Flag every customer with any balance more than 60 days past due. Do not assume anything about a customer beyond the sheet.
OUTPUT: Table 1: bucket totals, rebuilt versus 2b. Table 2: top five customers over 30 days past due, with balance, terms and type. Table 3: customers over 60 days past due. Then a call list of up to five, one line each on why and what to ask.
PROOF: Show the invoice count and the total (8,264,220.40) and the amount more than 60 days past due.

A good call list weighs dollars, age and what you know: a dispute, a slow approver, a balance gone quiet.

Step 3: Payables: pay on terms

Paying early without a discount is a free loan to your vendor; moving to terms releases cash once. A discount is different. Terms of 2/10 net 30 mean 2% off if paid in 10 days, otherwise full price at day 30. Skipping it means paying 2% to keep 98% of the invoice for 20 more days: 2/98 times 365/20, or 37.2% annualized. In our view that is worth taking when cash allows, since few companies borrow anywhere near that rate. (Larkspur’s revolver in this workbook is priced at an illustrative 6.75%.)

JOB: You are the treasurer reviewing payment timing by vendor.
DATA: Sheet 2c_AP_Vendors, same file. USD.
RULES: Compare average days to pay with terms for every row. Paid early with no discount: cash from paying on terms = annual spend / 365 x (terms minus average days to pay). Paid late: mark LATE; recommend no further stretch. Discount terms: annualized cost of skipping = discount / (100 minus discount) x 365 / (net days minus discount days); value a year = annual spend x discount; one-time cash to pay at the discount date instead of today's average.
OUTPUT: Table 1: vendors paid early, cash from paying on terms, total. Table 2: vendors paid late. Table 3: discount analysis. Then three plain-language recommendations.
PROOF: One line of arithmetic per vendor in Table 1. State the row count you read (14, including "all other").

Step 4: Inventory: slow movers versus the seasonal build

JOB: You are the treasurer reviewing inventory with the purchasing lead.
DATA: Sheet 2d_Inventory, same file. COGS covers August to October 2026 (three months).
RULES: Months on hand = on hand / (three-month COGS / 3). Flag any class over 3 months. For each flag, cash above a 2-month level = on hand minus 2 x monthly COGS. If a class name says it is seasonal, say which season it serves and whether an October build is expected; do not call it slow on months on hand alone. Recommend purchasing changes, not markdowns.
OUTPUT: Table: class, on hand, monthly COGS, months on hand, flag, cash above 2 months. Then one line per flag: slow mover or seasonal, and what to ask purchasing.
PROOF: Show that on hand totals 4,211,870.25, as in 2e_WC_Inputs.

Where AI changes this

Working capital reviews used to be a quarterly spreadsheet project. An AI can run the full review from the raw invoice and vendor lists every month, which turns it into a habit.

  • Rebuilding the aging from invoices and tying it to the system report before it drives a decision.
  • Vendor-by-vendor payment timing against terms, which most AP reports never show.
  • Discount math on every vendor that offers terms, not just the one someone remembers.
  • A drafted call list with talking points from the aging and open disputes.
  • Months on hand by class, monthly, seasonal classes labeled.

What stays human: the calls, any change to a vendor’s payment timing (a relationship, not a formula) and what to buy. For AI in collections, see our guide to AI accounts receivable and collections software; for the bigger picture, the AI in finance hub.

What a good answer looks like

Show the answer key

The cycle at October 31

MeasureDaysValue of one day
DSO47.8173,014
DIO34.8121,110
DPO26.5121,110
Cash conversion cycle56.1

At 26.5 days, DPO is below nearly every vendor’s terms: Larkspur pays faster than it has to.

Receivables by days past due

BucketAmount
Current4,823,256.92
1 to 30 past due2,704,612.59
31 to 60 past due615,289.02
61 to 90 past due46,343.03
Over 90 past due74,718.84
Total8,264,220.40

More than 60 days past due: 121,061.87. The over 90 bucket is net of a 6,400.00 unapplied credit memo for Bluefield Property Group; apply it or refund it. Top three over 30 days past due: Alder Creek School District 168,658.25, Cedar Valley Builders 139,479.34, Ridgeback Contractors 90,724.45.

Who to call first (our view): Cedar Valley Builders, the largest balance (1,726,032.56) with a live pricing dispute; settle it so the rest pays. Alder Creek, a government customer whose oldest invoice is 85 days from invoice; ask what holds approval. Foxhollow Mechanical: 80,262.59 more than 60 days past due, 50,654.65 of it over 90; ask for a payment plan and review credit. Then Ridgeback, and Granger Site Works (17,818.60, all over 90).

Vendors paid early (no discount)

VendorTermsPaid atCash from paying on terms
Bluewater Packaging4524132,904
Delta Safety Products6033146,466
Granite Tool Works45443,945
Keystone Hydraulics30284,959
Lumen Lighting Wholesale603593,151
Total381,425

Bluewater, Delta and Lumen are the real money; Granite and Keystone are a day or two early.

Already late: do not stretch. Cobalt Freight Lines (terms 30, paid at 31), Ironclad Hardware (30, paid at 43) and Northstar Abrasives (45, paid at 46). Ironclad is 13 days late on average; fix that before it costs supply or pricing.

Atlas Fasteners. Terms 2/10 net 30, paid at day 29, discount not taken. Skipping it costs 37.2% annualized. Taking it is worth about 79,000 a year and needs about 205,616 of cash once, to pay 19 days sooner. Paying the three big early vendors on terms frees more than enough to fund it.

Inventory over 3 months on hand

ClassMonths on handCash above a 2-month levelVerdict
Hand and power tools3.6214,533Slow mover: slow purchasing
Lighting3.4161,537Slow mover: slow purchasing
Seasonal (snow and ice melt)9.4235,400Built ahead of winter on purpose; sells down by March

The seasonal number looks worst and worries least.

Where AI goes wrong on this task

Our view of the usual failure points:

  • Stretching vendors already paid late. Asked to “improve DPO”, a model pushes every vendor out, including Ironclad at 43 days on 30-day terms. That is a supply problem, not a lever.
  • Treating the seasonal build as slow stock. 9.4 months of snow and ice melt in October is the plan working.
  • Mixing days past due with days from invoice. Some invoices bucketed from the invoice date, others from the due date. Tie the rebuilt buckets to 2b first.
  • Calling the discount a cost. Paying Atlas 19 days sooner looks like worse DPO. It is a 37.2% annualized return.

What stays with the treasurer

The AI sizes the levers; people pull them. Moving a vendor to terms is a phone call, and some were paid early for a reason. Whether to fund the Atlas discount with Lesson 1 showing a thin December is the treasurer’s call, made with the 13-week forecast open.

Check yourself

Why is a day of DSO worth more than a day of DPO?

DSO is measured against revenue (173,014 a day), DPO against cost of goods sold (121,110 a day).

Is the 381,425 from paying on terms a yearly saving?

No. It is a one-time release of cash: payables rise once to match terms and stay there.

Why take the Atlas discount if it means paying 19 days sooner?

Skipping it costs 37.2% annualized. Taking it earns about 79,000 a year for about 205,616 tied up once.

Alder Creek’s oldest invoice is 40 days past due. How old is it from invoice date?

85 days, because Alder Creek is on 45-day terms. Larkspur’s borrowing base (Lesson 6) ages from invoice date and drops invoices over 90 days, so on that test it is five days from the line.

Seasonal stock is at 9.4 months on hand. Why not cut purchasing there?

It is built before winter and sells down by March. The real slow movers are tools (3.6 months) and lighting (3.4).

Your turn: try it on your own numbers

Export open AR by invoice, AP vendors with terms and actual days to pay, and inventory by class. Tie every total to the GL, then run the four prompts. Real vendor bank details and bank account numbers are sensitive: use an approved tool, mask account numbers and check the data zones in the Workbench setup lesson.

Next: Treasury Track 3: Review bank fees and account structure with AI

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.