Search code examples
percentagediscount

How to get the actual value after subtracting discount(%)


I want to get the total amount with the help of Final amount and Discount rate.

For Example.

Grand total = 100

Discount = 15%

Final Amount =100*.15=85

if I have only two variables

Final amount = 85

Discount = 15%

Grand total = ?

Now I can get back Grand total with the help of "Final Amount" and "Discount rate"?


Solution

  • Let Grand Total = X

    X-(X * 15 %) = 85 then if you find the value of X then your Grand total can e found.

    X - 3X/20 = 85

    17X= 85*20

    X = (85/17)*20

    X =100

    Put it .. You will find the Grand Total