1
Answer

Calculation inclusive of vat

how to show and calculated  in inclusive vat in  base amount for exampal if per product price in 500 taka tow product sase 500+500=1000 discount 200 than case amoun 800 this amount 800 is base amount  I want this 800 taka inclusive VAT 5% bilow this example The black mark here is just right on a product. I want to do this calculation on the red circle below. How can I do that
 
 
Answers (1)
1
Amit Gupta

Amit Gupta

NA 22.9k 247.5k 4y
So far I understood, you want to calculate the base price from the total price should be inclusive of tax (i.e reverse calculattion tax), right? then use the below formula
 
var basePrice = PriceIncludingTax / (1+Tax/100); 
 
test with number
var basePrice = 790/ (1+5/100); //5 is your tax percentage 
                          i.e 790/1.05;
                          ans:  752.38; // this is your base price excluding tax
 
Do let me know,  if you need some more clarification