{
  "schema_version": "1.0",
  "organization": "p2-data-lab",
  "portal": "p2-solar-bess-lcoe-ppa-calc",
  "live_meta_url": "https://p2-solar-bess-lcoe-ppa-calc.pages.dev/data/meta.json",
  "openapi_url": "https://p2-solar-bess-lcoe-ppa-calc.pages.dev/openapi.json",
  "public_datasets": [
    "https://p2-solar-bess-lcoe-ppa-calc.pages.dev/data/solar-bess-pvgis-yields.json",
    "https://p2-solar-bess-lcoe-ppa-calc.pages.dev/data/tb2-tb4-spot-arbitrage.json"
  ],
  "calculator_inputs_schema": {
    "solar_resource_hub": {
      "label": "Solar & Grid Market Hub (Live JRC PVGIS + Spot Profile)",
      "type": "select",
      "default": "GERMANY_BAVARIA_DE_LU",
      "options": [
        "GERMANY_BAVARIA_DE_LU",
        "IBERIA_HIGH_IRRADIANCE_EU",
        "SICILY_SOUTHERN_ITALY_EU",
        "NETHERLANDS_NW_EUROPE",
        "ERCOT_TEXAS_US_ITC",
        "ARIZONA_SOUTHWEST_US_ITC"
      ]
    },
    "pv_capacity_mwp_dc": {
      "label": "Solar PV Nameplate Capacity (MWp DC)",
      "type": "number",
      "default": 100,
      "min": 1,
      "max": 2000
    },
    "dc_to_ac_ratio": {
      "label": "DC-to-AC Inverter Loading Ratio (ILR — e.g., 1.35x creates DC-clipping harvest for BESS)",
      "type": "number",
      "default": 1.35,
      "min": 1,
      "max": 2
    },
    "bess_power_mw": {
      "label": "Co-Located LFP BESS Power Rating (MW)",
      "type": "number",
      "default": 50,
      "min": 0,
      "max": 1000
    },
    "bess_duration_hours": {
      "label": "BESS Storage Duration (Hours: 2h TB2 vs 4h TB4)",
      "type": "select",
      "default": 4,
      "options": [
        0,
        1,
        2,
        4,
        8
      ]
    },
    "coupling_architecture": {
      "label": "Electrical Coupling Topology",
      "type": "select",
      "default": "DC_COUPLED_SHARED_INVERTER",
      "options": [
        "DC_COUPLED_SHARED_INVERTER",
        "AC_COUPLED_INDEPENDENT_GRID_CHARGE"
      ]
    },
    "pv_capex_usd_per_kwp": {
      "label": "Turnkey Solar PV EPC CapEx (USD / kWp DC)",
      "type": "number",
      "default": 740,
      "min": 400,
      "max": 1800
    },
    "bess_capex_usd_per_kwh": {
      "label": "Turnkey Installed BESS CapEx (USD / kWh)",
      "type": "number",
      "default": 215,
      "min": 110,
      "max": 600
    },
    "wacc_discount_rate_pct": {
      "label": "After-Tax Project WACC / Discount Rate (%)",
      "type": "number",
      "default": 7.25,
      "min": 3,
      "max": 16
    },
    "ppa_strike_price_usd_mwh": {
      "label": "Corporate PPA / CfD Strike Price (USD / MWh, w/ Negative-Spot Zero-Floor)",
      "type": "number",
      "default": 68,
      "min": 20,
      "max": 180
    },
    "tax_credit_itc_pct": {
      "label": "Investment Tax Credit / Capital Grant (% CapEx — e.g. 0% EU vs 30%–40% US IRA ITC)",
      "type": "select",
      "default": 0,
      "options": [
        0,
        10,
        30,
        40
      ]
    }
  },
  "formulas_summary": {
    "discounted_pv_energy_mwh": "NPV_MWh_PV = sum_{t=1}^{25} ( (pv_capacity_mwp_dc * Specific_Yield_PVGIS_MWh_MWp * (1 - 0.0045)^(t-1)) / (1 + WACC)^t )",
    "net_lifecycle_capex_opex_npv": "NPV_Cost = (CapEx_PV + CapEx_BESS) * (1 - tax_credit_itc_pct / 100) + Year11_BESS_Augmentation_CapEx / (1 + WACC)^11 + sum_{t=1}^{25} ( (OpEx_PV_yr + OpEx_BESS_yr) / (1 + WACC)^t )",
    "blended_hybrid_lcoe_and_lcos": "LCOE_Standalone_PV = NPV_Cost_PV / NPV_MWh_PV; LCOS_BESS_MWh = NPV_Cost_BESS / sum_{t=1}^{25}( Shifted_Discharged_MWh_t / (1 + WACC)^t )",
    "bess_negative_hour_and_tb4_uplift": "Rev_Standalone_PV_yr = E_PV_yr * (ppa_strike_price_usd_mwh * (1 - Negative_Spot_Hour_Curtailed_Share)); Rev_Hybrid_yr = Rev_Standalone_PV_yr + E_Clipped_and_NegHour_Stored * RTE_0.875 * Evening_Peak_Spot_Price + Grid_Arbitrage_Cycles * TB2_or_TB4_Live_Spread",
    "project_irr_and_payback": "Solve IRR r* where -CapEx_Net + sum_{t=1}^{25}( Net_Operating_Cashflow_t / (1 + r*)^t ) = 0"
  },
  "pro_api_endpoint": "https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-solar-bess-lcoe-ppa-calc/dataset",
  "auth_header": "Authorization: Bearer <POLAR_LICENSE_KEY>",
  "purchase_tiers": [
    {
      "sku_key": "solar_bess_pvgis_tb4_dataset",
      "product_id": "8ac0ea4d-4f08-4b04-8861-0e41cf292d34",
      "name": "PVGIS Solar Yields & TB2/TB4 Spot Dataset",
      "price_usd": null,
      "billing": "one_time",
      "checkout_url": "https://buy.polar.sh/polar_cl_gB5F9SZD6sUQKXx3d0X85plF3PTQeeM6Jyo9L142Yue"
    },
    {
      "sku_key": "ipp_ppa_pro_license",
      "product_id": "6b3a1456-07dc-4605-bbea-7a6d8ddd56ea",
      "name": "Pro 8760 Solar+BESS Dispatch & IRR Key",
      "price_usd": null,
      "billing": "one_time",
      "checkout_url": "https://buy.polar.sh/polar_cl_zp2mB0IRnH4ohZ88f8am6CxGzRR5eVOxZEAQK1crF5k"
    },
    {
      "sku_key": "renewable_pe_investment_committee_pack",
      "product_id": "9bf58dfb-a2bc-4b83-9762-5d1c3cd954f5",
      "name": "IPP & Corporate PPA IC Workbook Pack",
      "price_usd": null,
      "billing": "one_time",
      "checkout_url": "https://buy.polar.sh/polar_cl_eNZFbXh1zzVG1WZwImV0L9hNwYbvY7aGT0LFv09vxWi"
    }
  ],
  "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"
    }
  }
}