The cash conversion cycle is simple arithmetic: days customers take to pay (DSO) plus days stock sits (DIO) minus days you take to pay suppliers (DPO). The interesting part is turning those days into money, because that is the number an owner acts on.
Each piece is a share of a year of flows:
- unpaid invoices = a year of sales × DSO ÷ 365
- stock = a year of direct costs × DIO ÷ 365
- owed to suppliers = a year of direct costs × DPO ÷ 365
Cash tied up = invoices + stock − owed.
Keep money in integer cents
With floats, 1440000 * 52 / 365 is fine, but sums of several rounded-later values drift by a cent here and there, and the display then disagrees with an exported CSV. Doing it in BigInt cents with one explicit rounding rule removes the argument:
const div = (a, b) => (a + b / 2n) / b; function tiedUp({ monthlySalesCents, marginBp, dso, dio, dpo }) { const yearSales = BigInt(monthlySalesCents) * 12n; const yearCosts = (yearSales * BigInt(10000 - marginBp)) / 10000n; const invoices = div(yearSales * BigInt(dso), 365n); const stock = div(yearCosts * BigInt(dio), 365n); const owed = div(yearCosts * BigInt(dpo), 365n); return { cycle: dso + dio - dpo, invoices, stock, owed, tied: invoices + stock - owed }; } const fmt = c => '$' + (c / 100n).toLocaleString('en-US') + '.' + String(c % 100n).padStart(2, '0'); const r = tiedUp({ monthlySalesCents: 12_000_000, marginBp: 3800, dso: 52, dio: 34, dpo: 30 }); console.log(r.cycle, fmt(r.invoices), fmt(r.stock), fmt(r.owed), fmt(r.tied)); const faster = tiedUp({ monthlySalesCents: 12_000_000, marginBp: 3800, dso: 42, dio: 34, dpo: 30 }); console.log(fmt(r.tied - faster.tied)); console.log(fmt(div(r.tied * 1200n, 10000n))); Output:
56 $205,150.68 $83,164.93 $73,380.82 $214,934.79 $39,452.05 $25,792.17 Each component is rounded once, half up, and the total is the sum of the rounded parts, so the parts always add up to the total on screen.
Why the 'freed' number is not a yearly saving
Collecting 10 days faster releases $39,452 once: the cash moves from 'waiting in invoices' to 'in the bank'. Only the cost of money on that amount is yearly. Mixing the two up is the most common mistake in working-capital estimates.
The free Cash Conversion Cycle Calculator uses this arithmetic in the browser, in any currency, with nothing sent or stored.

