CIF = Product Cost + Shipping + Insurance
Customs Duty = CIF × Customs Duty Rate
VAT = (CIF + Customs Duty) × VAT Rate
Total = CIF + Customs Duty + VAT
Example:
Product: $ 1000, Shipping: $ 100, Insurance: $ 50
Customs: 20 %, VAT: 18 % is:
CIF = 1000 + 100 + 50 = 1150 $
Customs = 1150 x 0.20 = 230 $
VAT = (1150 + 230) x 0.18 = 248.40 $
Total = 1150 + 230 + 248.40 = 1628.40 $