{
  "schema_version": "1.0",
  "organization": "p2-data-lab",
  "portal": "p2-eu-battery-crma-calc",
  "live_meta_url": "https://p2-eu-battery-crma-calc.pages.dev/data/meta.json",
  "openapi_url": "https://p2-eu-battery-crma-calc.pages.dev/openapi.json",
  "public_datasets": [
    "https://p2-eu-battery-crma-calc.pages.dev/data/eu-battery-passport-matrix.json",
    "https://p2-eu-battery-crma-calc.pages.dev/data/hts-8507-minerals-and-recycling.json"
  ],
  "calculator_inputs_schema": {
    "battery_category": {
      "label": "EU Regulation (EU) 2023/1542 Battery Category",
      "type": "select",
      "default": "INDUSTRIAL_BESS_OR_DC_UPS_GT_2KWH",
      "options": [
        "INDUSTRIAL_BESS_OR_DC_UPS_GT_2KWH",
        "ELECTRIC_VEHICLE_EV_TRACTION",
        "LIGHT_MEANS_OF_TRANSPORT_LMT",
        "PORTABLE_SEALED_LE_5KG"
      ]
    },
    "cell_chemistry": {
      "label": "Cathode / Cell Chemistry",
      "type": "select",
      "default": "LFP_LITHIUM_IRON_PHOSPHATE",
      "options": [
        "LFP_LITHIUM_IRON_PHOSPHATE",
        "NMC_811_HIGH_NICKEL",
        "NMC_622_MID_NICKEL",
        "SODIUM_ION_NA_ION",
        "VRLA_LEAD_ACID"
      ]
    },
    "pack_capacity_kwh": {
      "label": "Nominal Usable Pack / Container Capacity (kWh)",
      "type": "number",
      "default": 3850,
      "min": 0.5,
      "max": 50000
    },
    "annual_units_placed_eu_us": {
      "label": "Annual Units Placed on EU / US Market",
      "type": "number",
      "default": 45,
      "min": 1,
      "max": 500000
    },
    "cell_gigafactory_grid": {
      "label": "Cell Manufacturing Country Grid Mix (JRC National Grid-Mix Rule — No PPA Offset)",
      "type": "select",
      "default": "CHINA_NATIONAL_GRID_AVG",
      "options": [
        "CHINA_NATIONAL_GRID_AVG",
        "SOUTH_KOREA_GRID_AVG",
        "POLAND_HUNGARY_GRID_AVG",
        "GERMANY_DE_LU_GRID",
        "SWEDEN_SE4_NORDIC_HYDRO_NUCLEAR",
        "FRANCE_NUCLEAR_LOW_CARBON",
        "US_SOUTHEAST_GRID"
      ]
    },
    "warranted_full_equiv_cycles": {
      "label": "Warranted Full Equivalent Cycles (governs functional unit kWh_lifetime)",
      "type": "number",
      "default": 6000,
      "min": 300,
      "max": 12000
    },
    "round_trip_efficiency_pct": {
      "label": "DC-to-DC Round-Trip Efficiency (%)",
      "type": "number",
      "default": 91.5,
      "min": 75,
      "max": 98
    },
    "actual_recycled_shares_pct": {
      "label": "Current Verified Post-Consumer/Manufacturing Recycled Shares (% Co, % Li, % Ni, % Pb)",
      "type": "object",
      "default": {
        "cobalt": 8,
        "lithium": 2,
        "nickel": 3,
        "lead": 85
      }
    },
    "target_compliance_phase": {
      "label": "Art. 8 Recycled Content Gate (2028 Documentation / 2031 Phase-1 / 2036 Phase-2)",
      "type": "select",
      "default": "2031_MANDATORY_RECYCLED_FLOOR_1",
      "options": [
        "2027_PASSPORT_AND_CF_CLASS",
        "2031_MANDATORY_RECYCLED_FLOOR_1",
        "2036_MANDATORY_RECYCLED_FLOOR_2"
      ]
    }
  },
  "formulas_summary": {
    "cradle_to_gate_pack_co2_kg": "CO2_pack_kg = pack_capacity_kwh * (EF_cathode_anode_mining(cell_chemistry) + kWh_elec_per_kWh_cell * Grid_EF_National(cell_gigafactory_grid) + EF_pack_enclosure_transport - Credit_Recycled_Metals)",
    "jrc_functional_unit_gco2_per_lifetime_kwh": "CF_functional = (CO2_pack_kg * 1000) / (pack_capacity_kwh * warranted_full_equiv_cycles * 0.80_avg_soh_dod * (round_trip_efficiency_pct / 100))",
    "art8_recycled_metal_shortfall_and_premium": "Gap_metal_kg = sum_{m in {Co,Li,Ni,Pb}}( Mass_m_per_kWh(cell_chemistry) * pack_capacity_kwh * max(0, Target_Art8_m - Actual_m) ); Cost_Recycled_Premium = Gap_metal_kg * Hydromet_BlackMass_Green_Premium_EUR_kg",
    "epr_takeback_and_notified_body_cost": "Cost_EPR_Passport_EUR = Annual_Total_MWh * EPR_Fee_EUR_per_MWh(cell_chemistry) + Notified_Body_Module_D1_G_Audit_EUR + Annual_Units * Battery_Passport_Registry_DID_Fee_EUR",
    "eu_vs_us_sec301_tariff_comparison": "Compare EU CN 8507.60 MFN (2.7%) + Battery Reg Compliance Cost vs US HTS 8507.60 MFN (3.4%) + Section 301 (25% non-EV BESS / EV battery surcharges)"
  },
  "pro_api_endpoint": "https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-eu-battery-crma-calc/dataset",
  "auth_header": "Authorization: Bearer <POLAR_LICENSE_KEY>",
  "purchase_tiers": [
    {
      "sku_key": "eu_battery_crma_dataset",
      "name": "EU Battery & CRMA Tariff + Footprint Dataset",
      "price_usd": null,
      "billing": "one_time",
      "checkout_url": ""
    },
    {
      "sku_key": "battery_passport_pro_license",
      "name": "Battery Passport Pro API & Batch Key",
      "price_usd": null,
      "billing": "month",
      "checkout_url": ""
    },
    {
      "sku_key": "bess_oem_eu_compliance_pack",
      "name": "BESS & EV OEM EU Compliance Pack",
      "price_usd": null,
      "billing": "one_time",
      "checkout_url": ""
    }
  ],
  "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"
    }
  }
}