DEV Community

Tidy Cents
Tidy Cents

Posted on

Two floors under revenue: break-even and the reserve floor, in integer cents

A business owner asks: how far can my sales fall? There are two answers. The profit floor is break-even, where monthly profit hits zero. The cash floor is lower: the sales level at which losses eat the cash you can spare (cash minus a safety reserve) over a chosen number of months.

Both are one line of algebra. The only traps are floats and rounding direction.

// How far can sales fall? Break-even and the reserve floor in integer cents.
// margin in basis points (4000 = 40.00%) so nothing is a float.
const fmt = c => '$' + (c / 100n).toLocaleString('en-US') + '.' + String(c % 100n).padStart(2, '0');
function floors({ sales, fixed, marginBp, cash, reserve, months }) {
  const breakEven = (fixed * 10000n + marginBp - 1n) / marginBp;          // round up: never overstate the floor's safety
  const spare = cash > reserve ? cash - reserve : 0n;
  const lossPerMonth = spare / months;                                     // affordable monthly loss
  const cashFloor = ((fixed - lossPerMonth) * 10000n + marginBp - 1n) / marginBp;
  const dropBp = s => (sales - s) * 10000n / sales;                        // drop in basis points, rounded down
  return { breakEven, cashFloor, profitDropBp: dropBp(breakEven), cashDropBp: dropBp(cashFloor) };
}
const r = floors({ sales: 4_000_000n, fixed: 1_200_000n, marginBp: 4000n, cash: 5_000_000n, reserve: 2_000_000n, months: 6n });
console.log(fmt(r.breakEven), fmt(r.cashFloor), Number(r.profitDropBp) / 100 + '%', Number(r.cashDropBp) / 100 + '%');
Enter fullscreen mode Exit fullscreen mode

Output: $30,000.00 $17,500.00 25% 56.25%.

Why it is written this way

  • Margin in basis points. 4000n is 40.00%. Every value is a BigInt, so 12000 / 0.4 never becomes 29999.999….
  • Floors round up. A floor rounded down would claim the business survives at a sales level where it does not. When a result is used as a safety limit, round against the user's optimism.
  • Spare cash is clamped at zero. If cash is already below the reserve, the affordable monthly loss is zero and the cash floor equals break-even.
  • Drop is rounded down. The reported "you can fall X%" never overstates the room.

For $40,000 of monthly sales, a 40% margin and $12,000 of fixed costs, sales can fall 25% before the business loses money, but 56.25% before a $50,000 balance falls to a $20,000 reserve within six months.

The same arithmetic, with your own numbers, is in the free Sales Drop Calculator: https://gettidycents.com/tools/sales-drop-calculator (no sign-up).

Tidy Cents: Business Software for Everyday Tasks. No AI guesses: every result shows its working.

Top comments (0)