Site icon BotFlo

Cursor App Template #28 — What-if Scenario Analysis

What-if Scenario Analysis

Adjust financial assumptions, compare Base, Optimistic, and Pessimistic outcomes, and visualize P&L impact in one browser page.

Overview

What-if Scenario Analysis is a single-page app for finance and planning teams who need to stress-test revenue and cost assumptions without rebuilding a spreadsheet. Enter base revenue, COGS, operating expenses, and tax rate; slide scenario drivers to recalculate a full P&L grid; compare variance columns side-by-side; chart net income and waterfall breakdowns; export or import workbooks; and save your model to the browser.

Key features

Key assumptions

Scenario drivers

Scenario management

Financial model grid

Net income comparison

Charts

Excel import & export

Save & load

Theme

Data & persistence

Default sample values ship with the app (e.g. $1,200,000 base revenue, $480,000 COGS, $420,000 opex, 25% tax rate). Optimistic and Pessimistic scenarios include preset driver percentages. Edits save automatically to localStorage; explicit Save/Load buttons let you confirm persistence. Import/export uses SheetJS workbooks for sharing models outside the browser.

Charts & reporting

Chart.js powers the scenario comparison bar chart and the per-scenario P&L waterfall. SheetJS generates the downloadable Excel workbook. Variance percentages in the grid and summary cards highlight favorable vs unfavorable moves relative to the base case.

Built with

Tailwind CSS, Alpine.js, AG Grid Community, Chart.js, and SheetJS (xlsx).

Try the interactive walkthrough below. Click Walk through features and use Next / Back (or arrow keys) to explore every feature.

What-if Scenario Analysis — Save/load, dark mode & persistence

What-if Scenario Analysis

Adjust assumptions, compare scenarios side-by-side, and visualize outcomes.

Key assumptions

Scenario drivers

Optimistic+12% / -5%
Pessimistic-10% / +8%
Scenario comparison (bar)
P&L waterfall
Line itemBaseOptimisticOpt Δ%PessimisticPess Δ%
Net Income$225,000$366,750+63.0%$81,000-64.0%

Net income comparison

Base$225,000
Optimistic$366,750
Pessimistic$81,000
💾 Assumptions & scenarios saved to localStorage 🌓 Theme preference remembered 📊 Grid columns rebuild on load
Exit mobile version