Copy of snippet "Tariff Calculator Offline"

Offline USA Tariff Calculator

Breakdown of costs

Item Cost: £{formtext: name=price; cols=10}{cursor}
Customs Tariff Rate: {formtext: default=15; name=tax_rate; cols=3}% Based on Country of Origin.
Current Exchange rate: {formtext: default=1.35; name=exchange_rate; cols=8} ( Check latest )
Tracked postage excl. tariff: £ {formtext: name=postage; cols=6} (optional)

{if: isnumber(price) and isnumber(tax_rate)}
Customs Tariff: {=(price * tax_rate / 100)+0.5; format=$,.2f} ( Incl. £0.50 Royal Mail handling charge )
Total incl. Tariff: {=price+(price * tax_rate / 100)+0.5+{=postage}; format=$,.2f}
Approx US$ cost: ${=(price+(price * tax_rate / 100)+0.5+{=postage})*{=exchange_rate}; format=,.2f} Dependent on current rate.

{else}
{error: Please enter a number for the price and ensure the tariff rate and exchange rates are valid.}
{endif}
{button: price=0
tax_rate=15; label=Reset all}