~/tools/discount-calculator $ run retail --calculate-savings
Discount Calculator
Calculate your final sale price and exactly how much cash you save during sales.
A discount calculator finds the final price by multiplying the original retail price by (1 - Discount% / 100), showing both final cost and total savings.
Final Sale Price:
$120
Total Cash Saved:
$30
// How to Calculate a Discount & Savings
Calculating discounts is an essential life skill. During seasonal sales (like Black Friday, Dashain sales, or clearance events), markdown percentages are advertised to tempt buyers. By computing the values, you know exactly what your bank statement will show before checking out.
Mathematical Formula:
Saved Amount = Original Price × (Discount% / 100)
Final Price = Original Price - Saved Amount
Worked Example: 20% Off $150
Suppose a jacket originally retailing for $150 has a 20% markdown.
1. Calculate how much you save: $150 × (20 / 100) = $150 × 0.2 = $30.
2. Subtract savings from the original retail price: $150 - $30 = $120.
The final sale price of the jacket is $120, and you save $30 in cash!
// Frequently Asked Questions
▸What represents a 100% discount?
A 100% discount means the item is completely free. The savings amount is equal to the original price, and the final sale price is $0.
▸How do you calculate a discount in your head?
Find 10% of the price by moving the decimal one place to the left, then multiply by the first digit of your discount rate. For instance, for 30% off $80: 10% is $8. $8 * 3 is $24 savings. Price = $80 - $24 = $56.
▸How do double-stack discounts work?
Discounts are usually applied sequentially, not added together. For example, if you have 20% off plus an extra 10% off: first apply 20% to get 80% price. Then apply 10% to that 80% (which takes off an extra 8%), making the final price 72% of the original, not 70%!