Sorry for such a newb question but my mind is not thinking well at this time.
If I have the Grand Total (including VAT) ammount of money paid and the VAT % which was paid, how can I figure out the sub total (total before VAT)?
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 its what Im looking for.