← p2-tariff-hscode-calc Calculator / Methodology & Provenance

p2-tariff-hscode-calc — Audit Methodology & Mathematical Dossier

Live upstream provenance (60 records, updated 2026-12-06T00:00:08.076Z), Draft 2020-12 JSON Schema, and citation templates.

1. Multi-Variable Equations & Boundary Assumptions

All calculations execute deterministically in-browser or via the edge-verified JSON dataset with zero server-side retention of user inputs. Currency normalization uses baked daily ECB reference rates (/data/fx.json), and variance metrics compare user-supplied parameters against the live p50/p90 benchmark distribution.

Net_Exposure = Sum_i( Unit_Rate_i * Volume_i * Risk_Multiplier_i * FX_Rate_EUR_to_Target )
Variance_Pct = ((Observed_Unit_Cost - Benchmark_Median_Cost) / Benchmark_Median_Cost) * 100
Annualized_ROI = (Baseline_Spend - Optimized_Spend - Tooling_License_Cost) / Tooling_License_Cost

2. Authoritative Upstream Open-Data Sources

Source NameCanonical Endpoint / ReferenceRefresh CadenceLast FetchedRecords
https://www.trade-tariff.service.gov.uk/api/v2https://www.trade-tariff.service.gov.uk/api/v2Scheduled Cron (≤ 16h)2026-12-06T00:00:08.076Z60
https://hts.usitc.gov/reststop/searchhttps://hts.usitc.gov/reststop/searchScheduled Cron (≤ 16h)2026-12-06T00:00:08.076Z60
https://api.frankfurter.app/latest?from=USDhttps://api.frankfurter.app/latest?from=USDScheduled Cron (≤ 16h)2026-12-06T00:00:08.076Z60
Download Draft 2020-12 schema.json Download Excel .tsv Sample Download .csv Sample Generate Formal Quote / PO PDF

3. Field-Level Schema Dictionary (Draft 2020-12)

Machine-readable schema published at https://p2-tariff-hscode-calc.pages.dev/data/schema.json with Access-Control-Allow-Origin: *.

PropertyJSON TypeObserved Min .. MaxSample Value
idstring—1
numeralstring—I
titlestring—Live animals; animal products
chapter_fromstring—01
chapter_tostring—05

4. 1-Click Academic, Legal & LLM Citations

Copy a formatted attribution block for audit memos, RFP appendices, or AI grounding:

P2 Data Lab. (2026). p2-tariff-hscode-calc Live Benchmark Dataset & TCO Audit Model (Version 1.0) [Data set]. Cloudflare Pages. https://p2-tariff-hscode-calc.pages.dev/methodology/

5. Governance, Auditability & Reproducibility Controls

Enterprise risk, finance, and engineering teams using p2-tariff-hscode-calc in formal procurement, regulatory filings, or board-level FinOps reviews require deterministic, tamper-evident audit trails. Every dataset release is accompanied by an immutable ISO-8601 fetched_at timestamp in /data/meta.json, a Draft 2020-12 JSON Schema contract in /data/schema.json, and zero-PII client-side execution.

6. Commercial Licensing & Procurement SKUs

Upgrade for full raw dataset downloads, unlimited CSV batch exports, and Bearer API access via p2-core-api:

Cross-Border HS-Code Duty & Tariff Schedule Dataset (CSV/JSON) ($29) Pro Bulk Landed-Cost CSV & API License Key ($39) Importer Landed-Cost & Tariff Audit Workbook Pack ($79) All-48 Portals Master Pass ($499/yr — Save 47%) Master Pass Monthly ($79/mo)