Build a SaaS Pricing and Annual-Discount ROI Calculator in One HTML File
Create an interactive SaaS pricing and annual-discount ROI calculator with seat sliders, a live savings bar, and a copyable summary card.
Text prompt for ChatGPT and Claude
You get: one complete HTML file in a single code block, then 3 short ideas to extend it.
The prompt
Act as a senior front-end engineer and UI designer. Build LedgerScale, a clean, single-file SaaS Pricing and Annual-Discount ROI Calculator.
Core functionality: Users select from three pricing tiers (Starter, Growth, Scale) with distinct per-seat monthly rates and included features, adjust team size from 1 to 250 seats via a range slider, and tune an annual billing discount from 0% to 35%. The app calculates monthly total, annual-billed monthly equivalent, total yearly savings, and estimated productivity ROI based on hours saved per seat.
Follow these rules:
1. Controls: Provide clickable tier cards, synced range sliders for seats and annual discount, and a Copy Summary button that copies a formatted quote to the clipboard with an inline Copied confirmation.
2. Visuals: Include a live horizontal comparison bar showing Annual Spend versus Total Savings with smooth width transitions.
3. Layout and palette: Use a light slate background, crisp white cards, indigo primary accents, emerald savings highlights, and tabular numerals for all currency figures.
4. Responsiveness and accessibility: Fit cleanly from 360px to 1280px without horizontal overflow, support keyboard navigation, and respect prefers-reduced-motion.
5. Constraints: Use zero external libraries, zero network calls, zero localStorage, and no form tags.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.Example output
Tips and common edits
Why this works
- Specifies exact tier rates, slider ranges, and tabular numerals so the layout stays aligned as numbers change.
- Bans external libraries, localStorage, and form tags so the file runs cleanly in sandboxed previews.
- Requires an inline clipboard confirmation instead of browser alerts, keeping the experience smooth.
Paste into Gemini, ChatGPT, or Claude, save the generated code as an .html file, and open it in any browser or preview it directly in Canvas or Artifacts.
Common edits
- Add a currency toggle (USD, EUR, GBP) with simple multiplier rates.
- Include an optional onboarding fee or custom enterprise tier above 250 seats.
Reuse it: Use in a workflowTurn into a skillAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Build a Freelance Project Scope and Rate Estimator in One HTML File
Generate ScopeCraft, a self-contained freelance pricing calculator with deliverables checklists, complexity multipliers, rush fees, and an instant client quote.
Build a Weekly Habit Tracker Grid with Streak Counts in One HTML File
Generates a single-file weekly habit tracker where you tap day cells to check off habits, watch streaks and completion percentages update live, and copy a plain-text summary.
Build a Contractor Quote and Estimate Builder in HTML
A single-file contractor quote builder that separates labour and materials with adjustable markup, tax, deposit calculation, and a clean print view.
Build a Distributed Team Time-Zone Meeting Planner in One HTML File
A single-file time-zone meeting planner with a 24-hour overlap grid, fair working-hour highlights, and one-click copy of proposed slots.
Build a Kanban Board with WIP Limits and Drag-and-Drop in HTML
Get a single-file HTML kanban board with configurable WIP limits, live card counts, drag-and-drop, and keyboard-accessible card movement.
Build a Unit Economics Calculator for CAC, LTV, and Payback
Create a single-file unit economics calculator with interactive sliders, live CAC and LTV formulas, payback months, and a plain-language health verdict.
- Build a Weekly Staff Shift Rota Builder in HTML
- Build an Email Signature Generator With Three Layouts in HTML
- Build an OKR Progress Tracker with Confidence Scores in One HTML File
- Build a Startup Runway and Burn Rate Calculator in One HTML File
- Build a BMI and Daily Calorie Calculator with Metric and Imperial Units in HTML
- Build a Countdown Timer to Any Date With a Confetti Finish in One HTML File