๐งฎ Auto-Calculating Order Form
Watch the total update automatically as you change values!
๐ฐ Order Details
๐ Auto-Calculated Values
Subtotal
$100
Discount (10%)
-$0
After Discount
$0
Tax (8.5%)
$0
Total
$0
๐ข The Formulas
subtotal = price ร quantity
discount = subtotal ร (discountPercent รท 100)
afterDiscount = subtotal - discount
tax = afterDiscount ร (taxPercent รท 100)
total = afterDiscount + tax