{
  "schema_version": "1.0",
  "organization": "p2-data-lab",
  "portal": "p2-bom-leadtime-calc",
  "live_meta_url": "https://p2-bom-leadtime-calc.pages.dev/data/meta.json",
  "openapi_url": "https://p2-bom-leadtime-calc.pages.dev/openapi.json",
  "public_datasets": [
    "https://p2-bom-leadtime-calc.pages.dev/data/bom-commodity-ppi.json",
    "https://p2-bom-leadtime-calc.pages.dev/data/ems-corridor-fx.json",
    "https://p2-bom-leadtime-calc.pages.dev/data/hts-electronics-tariffs.json"
  ],
  "calculator_inputs_schema": {
    "annual_build_units": {
      "label": "Annual Finished Hardware Production Volume (Units/yr)",
      "type": "number",
      "default": 25000,
      "min": 100,
      "max": 10000000
    },
    "ex_works_bom_usd": {
      "label": "Baseline Ex-Works Unit BOM Cost (USD/unit)",
      "type": "number",
      "default": 185,
      "min": 1,
      "max": 100000
    },
    "bom_mix_shares": {
      "label": "BOM Commodity Weighting (% Semis IC, % Bare PCB/PCBA, % Li-Ion Battery, % Copper/Aluminum/Steel Enclosure)",
      "type": "object",
      "default": {
        "semis_8542": 38,
        "pcba_8534": 24,
        "battery_8507": 18,
        "metals_enclosure": 20
      }
    },
    "sourcing_corridor": {
      "label": "Primary EMS Manufacturing Origin -> US/EU Destination",
      "type": "select",
      "default": "CHINA_SHENZHEN_SEC301",
      "options": [
        "CHINA_SHENZHEN_SEC301",
        "TAIWAN_HSINCHU",
        "VIETNAM_BAC_NINH",
        "MALAYSIA_PENANG",
        "MEXICO_GUADALAJARA_USMCA",
        "EASTERN_EUROPE_POLAND"
      ]
    },
    "nearshore_unit_piece_premium_pct": {
      "label": "Nearshore (MX / CEE / VN) EMS Piece-Price Quote Uplift vs China (%)",
      "type": "number",
      "default": 11.5,
      "min": -10,
      "max": 45
    },
    "supplier_lead_time_weeks": {
      "label": "Mean End-to-End Component + Transit Lead Time L (Weeks)",
      "type": "number",
      "default": 14,
      "min": 1,
      "max": 52
    },
    "lead_time_std_dev_weeks": {
      "label": "Lead-Time Variability Std Dev sigma_L (Weeks — port congestion / allocation)",
      "type": "number",
      "default": 3.5,
      "min": 0,
      "max": 20
    },
    "weekly_demand_cv_pct": {
      "label": "Weekly Forecast Demand Coefficient of Variation CV_D (%)",
      "type": "number",
      "default": 25,
      "min": 5,
      "max": 100
    },
    "target_cycle_service_level_pct": {
      "label": "Target Production Line Fill / Service Level (% — avoids line-down)",
      "type": "select",
      "default": 98,
      "options": [
        90,
        95,
        98,
        99,
        99.5
      ]
    },
    "wacc_plus_obsolescence_pct": {
      "label": "Annual Inventory Holding Rate: WACC + Warehousing + E&O Obsolescence (%/yr)",
      "type": "number",
      "default": 22,
      "min": 8,
      "max": 45
    }
  },
  "formulas_summary": {
    "ppi_indexed_should_cost": "BOM_adj = ex_works_bom_usd * sum_c( w_c * (PPI_c_latest / PPI_c_12m_ago) ) using live BLS PCU334413/334412/335910 & WPU102502/102501/1017",
    "tariff_and_mpf_per_unit": "Duty_unit = BOM_adj * Weighted_Tariff_Rate(sourcing_corridor, bom_mix_shares) + Freight_unit, incorporating live USITC MFN + Section 301 rates (e.g. 25%–50% CN 8542/8507/8534 vs 0% USMCA MX qualifying rules-of-origin)",
    "unit_landed_cost": "ULC = BOM_adj + Duty_unit",
    "stochastic_safety_stock_units": "SS_units = Z(service_level) * sqrt( L_weeks * (D_wk * CV_D)^2 + (D_wk)^2 * (sigma_L_weeks)^2 ), where D_wk = annual_build_units / 52 and Z(98%) = 2.0537",
    "pipeline_in_transit_units": "Pipe_units = D_wk * Transit_Weeks(sourcing_corridor)",
    "working_capital_tied_up_usd": "WC_tied = (SS_units + Pipe_units + 0.5 * EOQ_units) * ULC",
    "annual_inventory_carrying_cost_usd": "C_carry = WC_tied * (wacc_plus_obsolescence_pct / 100)",
    "total_annual_program_tco": "TCO_Total = annual_build_units * ULC + C_carry + Expedite_Air_Freight_Expected_Cost"
  },
  "pro_api_endpoint": "https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-bom-leadtime-calc/dataset",
  "auth_header": "Authorization: Bearer <POLAR_LICENSE_KEY>",
  "purchase_tiers": [
    {
      "sku_key": "bom-ppi-hts-dataset",
      "product_id": "61166a29-2cd8-43e6-a59c-b4109d69a38d",
      "name": "Electronics & Metals BOM PPI, HTS 85xx & FX Dataset",
      "price_usd": 39,
      "billing": "one_time",
      "checkout_url": "https://buy.polar.sh/polar_cl_XMBA3fgYVWIzspT7NL3OgLZxxiMnUNETVed9d4JkLC7"
    },
    {
      "sku_key": "bom-supplychain-pro-license",
      "product_id": "1dcf9d47-d880-44cf-ba43-353a3c39ed71",
      "name": "Pro Multi-Line Hardware BOM Tariff & Safety-Stock API Key",
      "price_usd": 29,
      "billing": "monthly",
      "checkout_url": "https://buy.polar.sh/polar_cl_CB9gTAIN2MZVaz6xfhZtBdohmw8T9WlriVwj40ZdhzD"
    },
    {
      "sku_key": "vp-ops-reshoring-workbook",
      "product_id": "f7316eab-625d-4a58-b1fc-fbc37edac502",
      "name": "VP Ops Hardware Reshoring & Working-Capital Pack",
      "price_usd": 99,
      "billing": "one_time",
      "checkout_url": "https://buy.polar.sh/polar_cl_AHcMooWytX1lvyMgvhkVxkcIdvNxfIno7Z0Uv2NVxf4"
    }
  ],
  "master_all_portals_pass": {
    "master_all_portals_pro_monthly": {
      "product_id": "18e0b844-b764-41f0-9c3d-186362784997",
      "name": "All-Portals Master Pro API & Batch CSV License Key (Monthly)",
      "price_usd": 79,
      "billing": "monthly",
      "checkout_url": "https://buy.polar.sh/polar_cl_0P1axu2nXEDXECK8Z0k7I3sMndeo3hsdqpepv1LUcJT"
    },
    "enterprise_annual_data_pass": {
      "product_id": "8a5266eb-3aaf-4fb3-9aef-0e5bbfd17dc3",
      "name": "Annual Enterprise FinOps & Compliance Data Pass (All Portals)",
      "price_usd": 499,
      "billing": "yearly",
      "checkout_url": "https://buy.polar.sh/polar_cl_SPWfsAxuQAVHif3soxwqbq5zPAdNZFkN5CtQK3cZRft"
    }
  }
}