{
  "schema_version": "1.0",
  "organization": "p2-data-lab",
  "portal": "p2-fidic-construction-calc",
  "live_meta_url": "https://p2-fidic-construction-calc.pages.dev/data/meta.json",
  "openapi_url": "https://p2-fidic-construction-calc.pages.dev/openapi.json",
  "public_datasets": [
    "https://p2-fidic-construction-calc.pages.dev/data/epc-archetype-weights.json",
    "https://p2-fidic-construction-calc.pages.dev/data/fidic-epc-indices.json",
    "https://p2-fidic-construction-calc.pages.dev/data/fx-currency-correction.json"
  ],
  "calculator_inputs_schema": {
    "epc_project_archetype": {
      "label": "Industrial EPC / Civil Package Archetype",
      "type": "select",
      "default": "HV_GRID_SUBSTATION_BESS_EPC",
      "options": [
        "HV_GRID_SUBSTATION_BESS_EPC",
        "HYPERSCALE_DATA_CENTER_SHELL_MEP",
        "UTILITY_SOLAR_WIND_BALANCE_OF_PLANT",
        "RAIL_PORT_CIVIL_INFRASTRUCTURE",
        "INDUSTRIAL_CHEMICAL_PROCESS_PLANT"
      ]
    },
    "ipc_certified_work_value": {
      "label": "Interim Payment Certificate (IPC) Gross Valuation Before Adjustment",
      "type": "number",
      "default": 12500000,
      "min": 50000,
      "max": 2000000000
    },
    "payment_currency": {
      "label": "Contract Currency of Payment",
      "type": "select",
      "default": "USD",
      "options": [
        "USD",
        "EUR",
        "GBP",
        "CHF",
        "CAD",
        "AUD",
        "SGD"
      ]
    },
    "index_source_geo": {
      "label": "Statistical Index Reference Market (Eurostat Geo)",
      "type": "select",
      "default": "DE",
      "options": [
        "EU27_2020",
        "EA20",
        "DE",
        "FR",
        "IT",
        "ES",
        "PL"
      ]
    },
    "base_date_period": {
      "label": "Contract Base Date Period (Tender - 49 Days, YYYY-MM)",
      "type": "select",
      "default": "2023-06"
    },
    "valuation_period": {
      "label": "IPC Current Valuation Period (Latest Live Index Month)",
      "type": "select",
      "default": "LATEST"
    },
    "weight_a_fixed": {
      "label": "Non-Adjustable Fixed Coefficient 'a' (typically 0.10–0.20)",
      "type": "number",
      "default": 0.15,
      "min": 0.05,
      "max": 0.5
    },
    "basket_weights": {
      "label": "Adjustable Cost Element Weights (sum with 'a' = 1.00: Labour NACE-F, Steel C24, Cement C23, Structural Metal C25, HV Electrical C27)",
      "type": "object",
      "default": {
        "labour_F": 0.22,
        "steel_C24": 0.18,
        "cement_C23": 0.1,
        "structural_C25": 0.1,
        "electrical_C27": 0.25
      }
    },
    "advance_payment_deduction_pct": {
      "label": "Non-Adjustable Advance Payment Amortization Share (%)",
      "type": "number",
      "default": 10,
      "min": 0,
      "max": 30
    },
    "contractor_in_culpable_delay": {
      "label": "Contractor Past Contractual Time for Completion? (Triggers FIDIC 13.8 Employer-Favorable Freeze)",
      "type": "boolean",
      "default": false
    }
  },
  "formulas_summary": {
    "weight_normalization_check": "Assert a + sum(w_k) == 1.000 (auto-normalize or warn if sum != 1.00)",
    "fx_currency_correction_ratio": "FX_Corr_k = (Z_o_index_per_pay / Z_n_index_per_pay) when Index_Currency != Payment_Currency else 1.0",
    "fidic_adjustment_multiplier_pn": "Pn_raw = a + sum_k( w_k * (Index_k(t_val) / Index_k(t_base)) * FX_Corr_k )",
    "delay_capped_pn": "Pn_eff = min(Pn_completion_date, Pn_raw) if contractor_in_culpable_delay else Pn_raw",
    "adjustable_ipc_amount": "V_adj_base = ipc_certified_work_value * (1 - advance_payment_deduction_pct / 100)",
    "net_price_escalation_delta": "Delta_IPC_Payment = V_adj_base * (Pn_eff - 1.0000); Revised_IPC_Total = ipc_certified_work_value + Delta_IPC_Payment"
  },
  "pro_api_endpoint": "https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-fidic-construction-calc/dataset",
  "auth_header": "Authorization: Bearer <POLAR_LICENSE_KEY>",
  "purchase_tiers": [
    {
      "sku_key": "fidic_epc_ppi_dataset",
      "product_id": "9bef9a80-7ef1-4dac-8076-772d039dcd76",
      "name": "FIDIC EPC Materials & Labor PPI Dataset",
      "price_usd": null,
      "billing": "one_time",
      "checkout_url": "https://buy.polar.sh/polar_cl_GxTzrWDsYF0eKJgAFiOcVWj23adfVwqvXZTYj3cuwNf"
    },
    {
      "sku_key": "fidic_qs_pro_license",
      "product_id": "a6702bd2-82dd-40d2-ba2e-937947380cb3",
      "name": "FIDIC 13.8 QS Pro Batch IPC & API Key",
      "price_usd": null,
      "billing": "one_time",
      "checkout_url": "https://buy.polar.sh/polar_cl_ddgxjjVeRaTp9BjYIcR0wcPk5jZ9GHLzNe5mE4FmTKW"
    },
    {
      "sku_key": "epc_commercial_director_fidic_pack",
      "product_id": "8e1f3819-40aa-43d0-a5ec-a4ebebfeba5d",
      "name": "EPC Commercial Director FIDIC 13.8 Pack",
      "price_usd": null,
      "billing": "one_time",
      "checkout_url": "https://buy.polar.sh/polar_cl_Q6cV4OYE1Gk54WX433OPA96g7KbP53sW9l3ex4EvtXk"
    }
  ],
  "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"
    }
  }
}