Hi all
Sad I know, but I am trying to calculate VAT on a price:
if I echo $row_salestotal['SUM(amount)'];
It displays: 371.89 so I know the content of the var is correct.
If I ech $vat is display 17.5, so I know that the var is correct.
If I put it all together the result displayed is 436.97.
I have read just about all the post referencing VAT calulations and I still can not see where I am going wrong.
$vat = 17.5;
$total = $row_salestotal['SUM(amount)'];
echo $vat;
echo round($totalvat = $total + ($total * 17.5 /100),2);
Many thanks for any help you can provide.