If I have the Grand Total (including VAT) amount of money paid and the VAT % which was paid, how can I figure out the sub total (total before VAT)?
For example
If Sub Total = 70 and VAT is 18% (70*18% = 12.6) Then total = 70+12.6 = 82.6
Now if I was given the Total 82.6 and VAT 18%, how can I find sub total?
A programmatic answer is also accepted as it's what I'm looking for.
Best Answer