Single discount
For one discount, the entered percentage is divided by 100 and multiplied by the original price to find the savings. With original price P and discount d, savings equal P x d/100, while the sale price equals P x (1 - d/100). The two resulting amounts should add back to the original price.