SuperAPI AI Directory

tariff-calculator-amazon

Office & productivity

View repository

Updated 10-16 09:21

About this skill

Tariff Calculator — Amazon 💰

A general-purpose tariff and landed cost calculator for international Amazon sellers.

Installation

npx skills add nexscope-ai/eCommerce-Skills --skill tariff-calculator-amazon -g

Features

  • Universal trade routes — any origin country to any destination country
  • Tariff rate lookup — HS code → tariff rate
  • Section 301 tariffs — US additional tariffs on Chinese imports
  • VAT/GST calculation — EU, UK, Canada, Australia, China rates
  • Landed cost — full cost breakdown
  • HS code matching — product description → HS code suggestions
  • Trade agreements — USMCA, EVFTA, RCEP preferential rates

Supported trade routes

Route Main tariff VAT/GST
🇨🇳 → 🇺🇸 China → US Section 301 (7.5-25%) Not applicable
🇨🇳 → 🇪🇺 China → EU Standard tariff 19-22%
🇨🇳 → 🇬🇧 China → UK Standard tariff 20%
🇺🇸 → 🇪🇺 US → EU Standard tariff 19-22%
🇪🇺 → 🇺🇸 EU → US Standard tariff Not applicable
🇺🇸 → 🇨🇳 US → China Retaliatory tariff 13% VAT
🇨🇳 → 🇨🇦 China → Canada Standard tariff 5% GST
🇨🇳 → 🇦🇺 China → Australia Standard tariff 10% GST
Custom User-defined User-defined

Section 301 tariffs (China → US)

HS chapter Product Additional rate
84xx Computers, machinery 25%
85xx Electronics (some) 0-25%
94xx Furniture, lighting 25%
95xx Toys 25%
61/62 Apparel 7.5%
64xx Footwear 7.5%
42xx Bags, accessories 7.5%

Landed cost formula

到岸成本 =
    FOB价
  + 国际运费
  + 保险
  + 进口关税
  + 增值税/消费税(如适用)
  + 清关费用
  + 港口费用
  + 内陆运费

Workflow

Step 1: Gather tariff calculation requirements — basic information such as product type, HS code, country of origin, destination country, FOB value, quantity, and shipping cost.

Step 2: Supplement information through multiple-choice questions — product material, whether Section 301 tariffs are involved, whether trade agreement preferences are needed, and whether multiple SKU calculations are involved.

Step 3: Use the following framework and methodology for research and analysis.

Landed cost calculation formula: Landed cost = FOB value + international freight + insurance + import tariff + VAT/GST + customs clearance fee + port fee + inland transportation fee. Step-by-step calculation: CIF value = FOB value + international freight + insurance; total tariff = CIF value × base tariff rate + CIF × 301 tariff rate (China→US); VAT = VAT base × VAT rate, where VAT base = CIF + total tariff; total taxes and fees = tariff + VAT + customs clearance fee ($150) + port fee ($50); total landed cost = CIF + total taxes and fees + inland transportation fee.

HS code system: The HS code is a universal commodity classification code for international trade. The first 2 digits represent the Chapter, and the first 4 digits represent the Heading. Chapters and headings are internationally unified, while subheadings (6-10 digits) are defined by each country. HS lookup priority: directly enter the HS code for exact matching (confidence 100%); keyword matching against a built-in mapping table (confidence 60-80%); fuzzy description matching by traversing the database (confidence 70%).

Base tariff rate: The base tariff rate is determined by HS chapter and destination country, with data sourced from each country's most-favored-nation (MFN) rates. For example: plastic products (Chapter 39) US 6.5%, EU 6.5%; machinery and equipment (Chapter 84) US 0%, EU 2%; electrical and electronic (Chapter 85) US 0%, EU 2%; furniture (Chapter 94) US 0%, EU 0%; toys (Chapter 95) US 0%, EU 4.5%.

Section 301 tariff calculation: The United States imposes additional tariffs on certain goods imported from China, determined by HS 4-digit heading. The tariff is calculated in addition to the base tariff, not as a replacement. For example: computers (8471) 25%; power supplies/transformers (8504) 25%; communication equipment (8517) 25%; furniture (9403) 25%; toys (9503) 25%; apparel (6110/6203/6204) 7.5%; footwear (6402) 7.5%.

VAT/GST calculation method: VAT base = CIF value + total tariff; VAT = VAT base × VAT rate. For example: China→EU: CIF=$5215 + tariff=$1304; VAT base=$6519; VAT=$6519×19%=$1239.

Step 4: Provide a complete tariff calculation report, including cost breakdown, tax and fee details, total landed cost, and unit price analysis.

How to use

Basic calculation

python3 scripts/calculator.py

With parameters

python3 scripts/calculator.py '{
  "hs_code": "8518300000",
  "origin_country": "CN",
  "destination_country": "US",
  "fob_value": 5000.00,
  "quantity": 500,
  "freight_cost": 200.00
}'

HS code lookup

python3 scripts/hs_lookup.py "wireless earbuds"
python3 scripts/hs_lookup.py "bluetooth speaker"

Custom trade route

python3 scripts/calculator.py '{
  "hs_code": "9503009000",
  "origin_country": "VN",
  "destination_country": "DE",
  "fob_value": 10000.00,
  "quantity": 1000,
  "freight_cost": 500.00,
  "custom_duty_rate": 0.047,
  "custom_vat_rate": 0.19
}'

Output example

💰 关税与到岸成本报告

产品:无线蓝牙耳机
HS编码:8518300000
路线:中国 🇨🇳 → 美国 🇺🇸

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📦 成本细分

FOB价               $  5,000.00
国际运费             $    200.00
保险                 $     15.00
CIF价               $  5,215.00

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🏛️ 关税与税费

基础关税(0.0%)      $      0.00
301条款(0.0%)      $      0.00
总关税               $      0.00
清关费用             $    150.00
港口费用             $     50.00

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

💵 到岸成本总结

总到岸成本           $  5,515.00
单价                 $     11.03

Trade agreement support

Agreement Country Preference
USMCA United States, Mexico, Canada Tax reduction/zero tariff
EVFTA European Union, Vietnam Tax reduction
RCEP Asia-Pacific region Tax reduction
UK-Japan United Kingdom, Japan Tax reduction

Custom configuration

Create a custom configuration for your route:

{
  "default_origin": "CN",
  "default_destination": "US",
  "include_insurance": true,
  "insurance_rate": 0.003,
  "customs_fee": 150,
  "port_fee": 50
}

Belongs to Nexscope AI — an AI tool for e-commerce sellers.