Apply one percentage discount to an original price and show the saving and final price.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Savings equals original price × discount percentage ÷ 100, and final price subtracts savings from the original. The percentage is applied once; tax, stacked promotions, and currency rounding are outside the calculation.
Original price: 79.99 Discount percent: 25
Original Price: $79.99 Discount: 25% (-$20.00) Final Price: $59.99 You Save: $20.00
Shoppers compare sale tags, retailers preview a single promotion, and budgets estimate net cost after a percentage reduction.