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
- Boundary Assumption A (Zero Mock Fallback): Every benchmark coefficient is derived from verified public regulatory, market, or pricing feeds recorded in
/data/meta.json. - Boundary Assumption B (Batch Audit Parity): Multi-row CSV uploads audit Rows 1–3 with identical equations to the full Pro Polar License Key export.
- Boundary Assumption C (Deterministic Reproducibility): Pinning
fetched_atand/data/schema.jsonguarantees bit-identical audit outputs across CLI, DuckDB, and browser sessions.
2. Authoritative Upstream Open-Data Sources
| Source Name | Canonical Endpoint / Reference | Refresh Cadence | Last Fetched | Records |
|---|---|---|---|---|
| https://api.bls.gov/publicAPI/v1/timeseries/data/PCU483111483111 | https://api.bls.gov/publicAPI/v1/timeseries/data/PCU483111483111 | Scheduled Cron (≤ 16h) | 2026-12-06T00:10:04.319Z | 65 |
| https://api.bls.gov/publicAPI/v1/timeseries/data/PCU481112481112 | https://api.bls.gov/publicAPI/v1/timeseries/data/PCU481112481112 | Scheduled Cron (≤ 16h) | 2026-12-06T00:10:04.319Z | 65 |
| https://api.bls.gov/publicAPI/v1/timeseries/data/PCU484121484121 | https://api.bls.gov/publicAPI/v1/timeseries/data/PCU484121484121 | Scheduled Cron (≤ 16h) | 2026-12-06T00:10:04.319Z | 65 |
| https://api.bls.gov/publicAPI/v1/timeseries/data/PCU488320488320 | https://api.bls.gov/publicAPI/v1/timeseries/data/PCU488320488320 | Scheduled Cron (≤ 16h) | 2026-12-06T00:10:04.319Z | 65 |
| https://api.bls.gov/publicAPI/v1/timeseries/data/WPU057303 | https://api.bls.gov/publicAPI/v1/timeseries/data/WPU057303 | Scheduled Cron (≤ 16h) | 2026-12-06T00:10:04.319Z | 65 |
| https://ec.europa.eu/eurostat/api/dissemination/statistics/1.0/data/sts_sepp_q?format=JSON&lang=EN&nace_r2=H494&nace_r2=H50&nace_r2=H51&nace_r2=H52&s_adj=NSA&unit=I21 | https://ec.europa.eu/eurostat/api/dissemination/statistics/1.0/data/sts_sepp_q?format=JSON&lang=EN&nace_r2=H494&nace_r2=H50&nace_r2=H51&nace_r2=H52&s_adj=NSA&unit=I21 | Scheduled Cron (≤ 16h) | 2026-12-06T00:10:04.319Z | 65 |
| https://ec.europa.eu/eurostat/api/dissemination/statistics/1.0/data/env_ac_ainah_r2?format=JSON&lang=EN&nace_r2=H49&nace_r2=H50&nace_r2=H51&airpol=GHG&unit=THS_T | https://ec.europa.eu/eurostat/api/dissemination/statistics/1.0/data/env_ac_ainah_r2?format=JSON&lang=EN&nace_r2=H49&nace_r2=H50&nace_r2=H51&airpol=GHG&unit=THS_T | Scheduled Cron (≤ 16h) | 2026-12-06T00:10:04.319Z | 65 |
| https://data.transportation.gov/resource/keg4-3bc2.json?$limit=250&$order=date%20DESC | https://data.transportation.gov/resource/keg4-3bc2.json?$limit=250&$order=date%20DESC | Scheduled Cron (≤ 16h) | 2026-12-06T00:10:04.319Z | 65 |
| https://api.frankfurter.app/latest?from=EUR | https://api.frankfurter.app/latest?from=EUR | Scheduled Cron (≤ 16h) | 2026-12-06T00:10:04.319Z | 65 |
3. Field-Level Schema Dictionary (Draft 2020-12)
Machine-readable schema published at https://p2-freight-compliance-calc.pages.dev/data/schema.json with Access-Control-Allow-Origin: *.
| Property | JSON Type | Observed Min .. Max | Sample Value |
|---|---|---|---|
series_id | string | — | PCU483111483111 |
source | string | — | US BLS PPI |
mode | string | — | Sea |
label | string | — | Deep Sea Freight Transportation PPI |
latest_period | string | — | N/A |
latest_value | string | — | — |
yoy_base_value | string | — | — |
yoy_change_pct | integer | 0 .. 0 | 0 |
ratio_vs_yoy | integer | 1 .. 1 | 1 |
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-freight-compliance-calc Live Benchmark Dataset & TCO Audit Model (Version 1.0) [Data set]. Cloudflare Pages. https://p2-freight-compliance-calc.pages.dev/methodology/
5. Governance, Auditability & Reproducibility Controls
Enterprise risk, finance, and engineering teams using p2-freight-compliance-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.
- Deterministic FX & Unit Normalization: Cross-border calculations normalize all monetary inputs against daily European Central Bank (ECB) reference rates baked into
/data/fx.jsonat build time, eliminating runtime external API drift during audit replays. - Zero-Upload Local Batch Execution: Multi-row CSV batch audits execute 100% inside the browser sandbox (
FileReader+ client-side RFC-4180 parser), ensuring proprietary BOMs, freight lanes, tax jurisdictions, or infrastructure manifests never leave the analyst's workstation. - Machine-Readable Agent & BI Interoperability: All public schemas and 10-row samples (
.json,.csv,.tsv) are served withAccess-Control-Allow-Origin: *for direct ingestion via DuckDBhttpfs, Excel PowerQuery, Python pandas, and MCP-compatible AI agents (/mcp.json). - Commercial SLA & Polar.sh Merchant-of-Record: Pro License Keys are verified at the edge via
POST https://p2-core-api.evsmtoken.workers.dev/v1/license/verifywith 5-minute KV caching and automated VAT/GST invoicing through Polar.sh.
6. Commercial Licensing & Procurement SKUs
Upgrade for full raw dataset downloads, unlimited CSV batch exports, and Bearer API access via p2-core-api: