The sale price comes off the top
A discount percentage lowers the original price before anything else is decided: 20 percent off $49.99 is a $39.99 sale price. The cost does not move, and that is the whole shape of the exercise - less money comes in for the same money going out, so everything downstream gets tighter at once.
Every other figure on the page is derived from that one subtraction. Read the discount as a markup, or apply it twice, and the margin, the profit per unit and the extra volume required will all be wrong together and in the same direction, which is how a promotion ends up looking better than it is.
The page needs a price and a cost above zero to make sense of anything and stops with a message if either is missing. The discount is held at 95 percent or less, so the sale price always stays above zero and a margin can always be computed.