Freehand Studio · AI Agent · Trade & Compliance

Duty Calculation Agent: Full Duty Visibility on Every Shipment Before It Moves

Duty liability calculated for each shipment using HS classification, declared value, country of origin, trade agreement eligibility, and current duty rates. Pre-shipment estimates, entry calculations, and variance analysis all in one pipeline.

Shipper
3PL
LSP
Carrier
Service Provider
Pre-shipment
Duty visibility for every international movement landed cost known before goods move
0.5-2%
Of import duty spend recoverable from overpayment identified through variance tracking
Zero
Shipments moving without a duty estimate full landed cost coverage
Trusted by global leaders in logistics, manufacturing, and retail
Awards and Recognitions
The Problem

Duty Calculation Errors Produce Penalties, Overpayments, and Landed Cost Surprises.

Duty calculation depends on correct HS classification, applicable trade agreements, valuation method, and country-specific rate tables. Errors in any input produce incorrect assessments leading to underpayment penalties or overpayment that erodes landed cost competitiveness.

No Pre-Shipment Duty Visibility

When duty is calculated by the customs broker at entry, the landed cost is unknown until after goods are in transit. Sourcing decisions, pricing calculations, and inventory planning are made without knowing what the duty component of landed cost will be.

Overpayment Discovered Too Late

Duty overpayments resulting from incorrect HS classification, wrong duty rate application, or missed trade agreement eligibility are typically discovered during post-entry audits if they are discovered at all. Recovery requires formal protest processes that are time-consuming and have limited lookback windows.

Duty Rate Table Maintenance Is Manual

Country-specific duty rate tables change with trade negotiations, tariff actions, and schedule updates. Manual maintenance is slow and error-prone. Rates used in calculations may be months out of date, producing incorrect assessments.

Estimate-to-Assessment Variance Not Tracked

Even companies that produce duty estimates rarely track variance between estimated and actually assessed duties systematically. Systemic estimation errors consistently over- or underestimating for specific categories go undetected and uncorrected.

Multi-Country Complexity Not Manageable Manually

An enterprise trading across 40 lanes faces hundreds of country-product-rate combinations, each potentially modified by trade agreements, anti-dumping duties, and tariff rate quotas. Manual management at this scale produces coverage gaps and calculation errors.

Landed Cost Models Use Estimated Duty

When duty cannot be calculated accurately before shipment, landed cost models use estimated or historical duty percentages. Sourcing and pricing decisions are made on inaccurate landed cost assumptions.

What the Agent Does

Pre-Shipment Estimate. Entry Calculation. Variance Tracking. Overpayment Recovery.

Calculates duty liability for each shipment using HS classification, declared value, country of origin, FTA eligibility, and applicable duty rates. Generates pre-shipment estimates, actual entry calculations, and variance analysis between estimated and assessed duties.

Pre-Shipment Duty Estimation

Duty estimated for every international shipment before departure using verified HS codes, current duty rate tables, country of origin, and FTA eligibility from the FTA Qualification Agent. Landed cost known before goods move. No duty surprise at arrival.

Actual Entry Duty Calculation

Duty calculated at entry using confirmed shipment data, actual declared value, and applicable duty rates including any anti-dumping, countervailing, or tariff rate quota adjustments. Calculation submitted to customs documentation and ERP landed cost records.

Estimate-to-Assessment Variance Tracking

Variance between pre-shipment duty estimate and customs-assessed duty tracked per shipment, product, and trade lane. Systemic variances indicating classification errors, missed FTA eligibility, or rate table gaps identified and surfaced for correction.

Overpayment Identification and Recovery

Duty overpayments identified through variance analysis and classification review. Overpayment amounts calculated and recovery claims initiated through the Drawback Recovery Agent and broker correction workflows within the statutory lookback window.

Real-Time Rate Table Maintenance

Duty rate tables from Descartes, Thomson Reuters, and QAD GTTE updated continuously. Rate changes from trade negotiations, tariff actions, and schedule updates applied automatically. Calculations always use current rates.

Landed Cost Model Integration

Pre-shipment duty estimates fed to ERP landed cost models and SAP S/4 purchasing records. Sourcing and pricing decisions made against actual duty cost not estimated percentages from historical averages.

Agent Handoffs

From Verified Classification to Accurate Landed Cost

Receives verified HS codes and FTA eligibility data upstream. Delivers duty calculations to drawback recovery, broker audit, and compliance screening agents downstream.

Receives from

HS Classification Agent

  • Verified HS codes from the HS Classification Agent used as the primary classification input for duty rate lookup and pre-shipment duty estimation.

FTA Qualification Agent

  • FTA eligibility determinations from the FTA Qualification Agent used to apply preferential duty rates where applicable reducing estimated and actual duty liability for eligible shipments.

This Agent

Duty Calculation Agent

  • Calculates pre-shipment duty estimates and actual entry duty for every international shipment. Tracks estimate-to-assessment variance. Identifies overpayments. Delivers landed cost data to ERP and downstream trade compliance agents.

Triggers

Drawback Recovery Agent

  • Duty payment records and export transaction data delivered to the Drawback Recovery Agent for import-export pair matching and drawback claim filing.

Broker Audit Agent

  • Calculated duty amounts and rate table data delivered to the Broker Audit Agent for validation of customs broker-assessed duty against the agent's calculation.

Compliance Screening Agent

  • Duty calculation records and trade lane data delivered to the Compliance Screening Agent for cross-referencing against restricted party and export control requirements.
Before AI → After AI

What Changes When Duty Calculation Runs on the Agent

The shipment volume does not change. The duty visibility before and after goods move does.

Before the Agent
With Duty Calculation Agent
Duty calculated by customs broker at entry. Landed cost unknown until goods are in transit. Sourcing and pricing decisions made without knowing the duty component.
Pre-shipment duty estimate calculated for every international movement. Landed cost visible before goods move. Sourcing and pricing decisions made with verified duty data.
Duty overpayments from incorrect classification, wrong rate application, or missed FTA eligibility typically discovered during post-entry audits if discovered at all.
Estimate-to-assessment variance tracked per shipment, product, and lane. Systemic overpayments identified and recovery initiated within the statutory window.
Duty rate table maintenance is manual and slow. Rates used in calculations may be months out of date, producing incorrect assessments in either direction.
Duty rate tables from Descartes, Thomson Reuters, and QAD GTTE updated continuously. Rate changes applied automatically. Calculations always use current rates.
Estimate-to-assessment variance not tracked. Systemic estimation errors go undetected and uncorrected. Overpayment accumulates invisibly across trade lanes.
Systemic variance detected and surfaced automatically. Classification errors, missed FTA eligibility, and rate table gaps identified before overpayment compounds further.
Landed cost models use estimated duty percentages from historical averages. Sourcing and pricing decisions made on inaccurate landed cost assumptions.
Pre-shipment duty estimates fed to ERP landed cost models. Sourcing and pricing decisions made against accurate, current duty calculations not historical estimates.
Measured Outcomes

Results from Live Deployments

Outcomes measured from industrial, automotive, chemical, and pharmaceutical enterprise deployments across global trade operations.

Pre-shipment
Duty visibility for every international movement landed cost known before goods move
0.5-2%
Of import duty spend recoverable from overpayment identified through variance tracking
Zero
Shipments moving without a duty estimate full landed cost coverage

Pre-shipment duty estimate for every international movement before goods depart.

Estimate-to-assessment variance tracked per shipment, product, and lane.

Systemic overpayments identified and recovery initiated within the statutory window.

Duty rate tables updated continuously from Descartes, Thomson Reuters, and QAD GTTE.

Connects to ERP, TMS, and tariff content providers on day one. No customs consultant required.

Scales with shipment volume and trade lane count. No incremental broker dependency as coverage expands.

Integrations

Works Where Your Trade and ERP Data Already Lives

Reads from ERP shipment records and tariff content providers. Writes duty estimates to landed cost models and calculation records to downstream trade agents.

Classification

Freehand HS Classification Data

Verified HS codes from the HS Classification Agent used as the primary classification input for duty rate lookup and landed cost calculation.

FTA Eligibility

FTA Qualification Agent · Freehand

FTA eligibility determinations from the FTA Qualification Agent used to apply preferential duty rates for eligible shipments.

Tariff Data

Descartes · Thomson Reuters · QAD GTTE

Country-specific duty rate tables consumed via REST API with continuous update. Anti-dumping, countervailing, and tariff rate quota adjustments included.

ERP

SAP S/4HANA · Oracle Fusion · Dynamics 365

Shipment declared value, country of origin records, and ERP purchasing data consumed via BAPI and OData for duty calculation inputs.

Middleware

MuleSoft · Dell Boomi · Seeburger BIS

Trade and shipment data flowing through your integration layer accessed without duty calculation pipeline disruption.

TMS

SAP TM

Shipment booking data from TMS consumed for pre-shipment duty estimation before goods depart.

ERP Landed Cost

Pre-Shipment Duty Estimate ERP · TMS

Pre-shipment duty estimates written to ERP landed cost models and TMS shipment records via BAPI and REST before goods depart.

Entry Calculation

Entry Duty Calculation

Actual entry duty calculations written to Freehand and connected trade platforms at customs clearance.

Variance Report

Duty Variance Report

Estimate-to-assessment variance tracked by shipment, product, and lane in Freehand and Snowflake dashboards for systemic overpayment identification.

Drawback

Drawback Recovery Agent Input

Duty payment records delivered to the Drawback Recovery Agent for import-export pair matching and claim filing.

Data Lake

Snowflake / Databricks

Duty calculation records and variance data written to your data lake for trade analytics and compliance reporting.

Trade Platform

Landed Cost Model

Accurate duty components fed to ERP and trade platform landed cost models for sourcing and pricing decision support.

40
Trade lanes with pre-shipment duty visibility for the first time in industrial deployment
$780K
Duty overpayment identified and recovered through variance tracking in year one
0.5-2%
Of import duty spend recoverable from overpayment identified through systematic variance analysis
Day 1
Connected to ERP, TMS, and tariff content providers from go-live
Case Studies

40 Trade Lanes. First-Ever Pre-Shipment Visibility. $780K Recovered.

Real outcomes from enterprises running the Duty Calculation Agent in production.

Case Study 01

Industrial Manufacturer

Industrial manufacturer with 40 international trade lanes and no pre-shipment duty visibility. Landed cost calculations for sourcing decisions used estimated duty percentages. Duty overpayment invisible until a broker audit triggered a post-entry review.

Industrial Manufacturing · 40 Trade Lanes · No Pre-Shipment Visibility

40 lanes

With pre-shipment duty visibility for the first time

$780K

Duty overpayment identified through variance tracking in year one

  • Pre-shipment duty visibility established across all 40 trade lanes for the first time, enabling landed cost comparison in sourcing decisions that had previously used estimated percentages
  • $780K in duty overpayment identified through estimate-to-assessed variance tracking, recovered through post-entry protests filed within the statutory lookback window
  • Landed cost models updated to use actual pre-shipment duty estimates improving sourcing decision accuracy across all 40 lanes for the first time
Case Study 02

Consumer Goods Importer

Consumer goods importer with high-volume mixed-category imports where rate table maintenance had fallen behind. Outdated rates were producing consistent overpayments across several high-volume product categories.

Consumer Goods · High-Volume Imports · Rate Table Maintenance Gap

$1.2M

Annual duty overpayment eliminated through current rate table application

Zero

Rate table maintenance lag rates updated continuously from tariff content providers

  • Pre-shipment duty visibility established across all 40 trade lanes for the first time, enabling landed cost comparison in sourcing decisions that had previously used estimated percentages.
  • Continuous rate table updates from Descartes and Thomson Reuters eliminated the maintenance lag, with prior overpayment recovered through post-entry protests
  • Landed cost models updated to use actual pre-shipment duty estimates improving sourcing decision accuracy across all 40 lanes for the first time.
Technology

Powered by the Freehand Context Graph

Accurate duty calculation requires HS code, trade agreement status, current rate tables, and valuation all verified before the shipment moves.

The Context Graph connects HS classification data, FTA eligibility determinations, duty rate tables from tariff content providers, and ERP shipment records into the unified calculation context. Every duty estimate and entry calculation draws from current, verified data across all relevant inputs.

Built on the Freehand Logistics Language Model, trained on duty calculation frameworks, tariff rate table structures, trade agreement preference logic, and customs valuation methodologies across global trade jurisdictions. It understands how HS codes, origin, and trade agreements interact to produce the correct duty liability.

  • Every duty calculation is traceable. The HS code applied, the duty rate table used, the FTA eligibility applied, and the final calculated amount are all logged. Complete documentation available for customs authority review and overpayment recovery claims.
  • The Context Graph learns from variance outcomes. Classification corrections and rate table updates that resolved systemic variances are incorporated into future calculations. Estimation accuracy improves with every shipment cycle.
  • Duty calculation intelligence flows into every downstream trade compliance agent. The Drawback Recovery Agent receives duty payment records. The Broker Audit Agent receives calculated amounts for validation. The Compliance Screening Agent receives trade lane data.
Architecture Overview
DATA LAYER AI TEAM Contracted Rates Carrier Invoices Shipment Events EDI Feeds ERP Exports Rate Cards CG Context Graph Freehand LLM Unified Semantic Layer Domain-Specific AI Self-Learning Model IA Invoice Audit Agent 100% invoice coverage GL GL Coding Agent GL posting & allocation AF Accrual & Forecast Agent Live spend accruals SI Spend Intelligence Agent Finance-grade data ERP OUTPUT SAP · Oracle Cloud · Oracle JDE · NetSuite · via API & EDI
FAQ

Duty Calculation: Questions Trade and Finance Leaders Ask

Straight answers to what trade compliance and finance leaders ask before deploying the Duty Calculation Agent.

What inputs does the agent use for duty calculation?
+

HS classification from the HS Classification Agent, declared value and country of origin from ERP, FTA eligibility from the FTA Qualification Agent, and current duty rate tables from Descartes, Thomson Reuters, and QAD GTTE.

When is the pre-shipment duty estimate calculated?
+

At booking in the TMS, using the confirmed HS code, declared value, country of origin, and FTA eligibility for the shipment. Estimate available before goods depart. Landed cost known before the shipment is in transit.

How does the agent identify duty overpayments?
+

Variance tracked between pre-shipment estimate and customs-assessed duty per shipment and trade lane. Systemic variances indicate incorrect classification, rate table errors, or missed FTA eligibility. Overpayments quantified and flagged for recovery claim filing.

How current are the duty rate tables?
+

Continuously updated from Descartes, Thomson Reuters, and QAD GTTE via REST API. Rate changes from trade negotiations, tariff actions, schedule updates, and anti-dumping decisions applied automatically. No manual rate table maintenance required.

How does the Duty Calculation Agent fit into the Freehand pipeline?
+

Receives verified HS codes from the HS Classification Agent and FTA eligibility from the FTA Qualification Agent. Delivers duty payment records to the Drawback Recovery Agent, calculation data to the Broker Audit Agent, and trade lane data to the Compliance Screening Agent.

How quickly can the Duty Calculation Agent be deployed?
+

Deployable in days via pre-built connectors to ERP, TMS, and tariff content providers. Most enterprises have pre-shipment duty estimates running across all active trade lanes within the first week of deployment.

Get Started

Deploy the Duty Calculation Agent Across Your Import Portfolio

Pre-shipment duty visibility on every trade lane. Overpayment identified and recovered. Landed cost models using verified data. Deployable in days.

Built on Freehand Studio · freehand.ai

See how Freehand recovers margin you're already losing

Map your commercial agreements to real-world execution - recovering 2-5% in lost margins and ensuring 100% audit coverage.

What to expect in the call

We identify exactly where you’re leaking margins

See how our AI Teams cross-check contracts, and resolve overcharges

Get a savings estimate based on your current spend and systems.

Trusted & Recognized by

KEARNEY
pwc
Gartner

See AI teams in action