Net 30 to Net 60 in integer cents: the cash gap, its yearly cost and the longest safe terms
A customer asks to move from Net 30 to Net 60. The price stays the same, so the change looks free. It is not: for the extra days, cash you used to hold sits with the customer. Three numbers turn the request into a decisi
A customer asks to move from Net 30 to Net 60. The price stays the same, so the change looks free. It is not: for the extra days, cash you used to hold sits with the customer. Three numbers turn the request into a decision. Here is the arithmetic, in integer cents and basis points so nothing drifts.
Inputs
// money in cents, rates in basis points (1% = 100 bp)
const yearlySalesOnTerms = 24_960_000; // $249,600 a year bought on these terms
const currentDays = 30;
const newDays = 60;
const costOfMoneyBp = 1200; // 12% a year
1. The one-off cash gap
Extra days × daily sales on those terms. Round half up to whole cents with BigInt:
const divRound = (a, b) => (a * 2n + b) / (2n * b); // a, b >= 0
const gap = divRound(
BigInt(yearlySalesOnTerms) * BigInt(newDays - currentDays),
365n
); // 2_051_507n cents → $20,515.07
2. What the gap costs a year
const yearlyCost = divRound(gap * BigInt(costOfMoneyBp), 10_000n);
// 246_181n cents → $2,461.81
3. The same cost as a discount on every sale
const discountBp = divRound(yearlyCost * 10_000n, BigInt(yearlySalesOnTerms));
// 99n → 0.99%
That is the number to negotiate with. Saying yes to Net 60 is the same as giving this customer almost a 1% discount nobody asked for.
4. The longest terms your cash can carry
Cash above the safety reserve, turned into days of sales on those terms, added to the current days, rounded down — rounding up would promise a day you cannot afford:
const cashAboveReserve = 3_800_000n; // $38,000 (illustrative)
const extraDays = (cashAboveReserve * 365n) / BigInt(yearlySalesOnTerms); // floor
const longestSafe = currentDays + Number(extraDays); // 85 → Net 85
Net 60 fits inside Net 85, so the business can say yes — but now it knows the price of that yes.
Edge cases worth a test
-
yearlySalesOnTerms = 0→ no gap, no discount; guard the division. - Cash below the reserve →
extraDaysis negative; report "no room", not a shorter term. - New days shorter than current days → the gap is cash coming back; show it as a release, not a cost.
I build Tidy Cents, and the free Payment Terms Cash Flow Calculator runs exactly this math in any currency, with every formula shown on the page.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.