Web tool to test pricing, cost, headcount and marketing decisions and see their effect on profit, cash and risk over the next 12 months.
The calculation runs in the browser, in TypeScript, and reproduces the reference Python engine across 13 shared test scenarios.
The scenario lives in the page address, written with a 300 ms delay, so someone else can review it from the link.
The chart drops its animation when the system asks for reduced motion and has an alternative table with the same numbers.
Next.js and TypeScript with the simulation engine in the browser, Recharts charts and a Python/FastAPI reference engine that keeps the calculations in parity.
Unified the model: indicators and projection use the same effective demand.
Every formula is tested in both engines, which makes the calculation verifiable.
Problem
- Without a stable link, it is hard to review a scenario with someone else.
- Formulas scattered across spreadsheets have no tests.
What the page shows
- Monthly profit, cash flow, safety margin and annual profit in Brazilian reais.
- Risk index, break-even point and effective demand after the price effect.
- Month-by-month revenue and profit for 12 months, with a table alternative to the chart.
How the model works
- Effective demand is the stated demand adjusted for price, with a factor between 0.6 and 1.3.
- Monthly profit is the first projected month; annual profit sums 12 months.
- Fixed assumptions (salary, debt, working capital, depreciation and seasonality) are shown on the page.