Calculate discount of total price

Hello I have a double that contains 4420. I have extracted this from a pdf file. The number its the result after a 35% discount. I want a function that can calculate the double before the discounts happens.

Any idea ?

If MyDbl is the variable storing 4420, and NewDbl is the amount before the 35% discount, use the formula below:

NewDbl = MyDbl/.65

1 Like

original amt = (Discount amt * 100 )/35

@langsem, Try this:

Amount = (Discount Amount * 100) / (100 - Discount Percent)

E.g.
= (4420 * 100) / (100 - 35)
= 442000/65
= 6800

Hope it helps

Cheers :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.