original price: $20
discount: 40%

Discount is $8
Final price:

The final price is $12
The percentage you are actually paying is 100% - 40% = 60%
The equation that describes this problem is:

Where A is the actual price, P is the original price and d is the discount.