price_per_kg = float(input("Enter the price (without tax) of one kilogram of tomatoes: ")) kilograms = float(input("Enter the number of kilograms you want to buy: ")) vat_percent = float(input("Enter the VAT in percent: "))
total_price_before_tax = price_per_kg * kilograms
vat_amount = (total_price_before_tax * vat_percent) / 100
total_price_with_vat = total_price_before_tax + vat_amount
print(f"The total price including VAT is: {total_price_with_vat:.2f}")
for more detailed articles you can read on https://vatcalculatorsa.co.za/