{
  "schema_version": "1.0",
  "organization": "p2-data-lab",
  "portal": "p2-eor-payroll-calc",
  "live_meta_url": "https://p2-eor-payroll-calc.pages.dev/data/meta.json",
  "openapi_url": "https://p2-eor-payroll-calc.pages.dev/openapi.json",
  "public_datasets": [
    "https://p2-eor-payroll-calc.pages.dev/data/fx-rates.json",
    "https://p2-eor-payroll-calc.pages.dev/data/jurisdictions.json"
  ],
  "calculator_inputs_schema": {
    "country_code": {
      "label": "Target Hiring Jurisdiction",
      "type": "select",
      "default": "DE"
    },
    "funding_currency": {
      "label": "HQ Treasury Funding Currency",
      "type": "select",
      "default": "USD",
      "options": [
        "USD",
        "EUR",
        "GBP",
        "CHF",
        "CAD",
        "AUD",
        "SGD"
      ]
    },
    "gross_annual_salary": {
      "label": "Gross Base Annual Salary (in Funding or Local Currency)",
      "type": "number",
      "default": 95000,
      "min": 12000,
      "max": 1000000
    },
    "headcount": {
      "label": "Planned Country Headcount",
      "type": "number",
      "default": 4,
      "min": 1,
      "max": 250
    },
    "eor_monthly_fee_usd": {
      "label": "EOR Platform Seat Fee (USD/employee/mo)",
      "type": "number",
      "default": 599,
      "min": 199,
      "max": 1500
    },
    "eor_fx_spread_pct": {
      "label": "EOR Billing FX Spread Over Live Mid-Market (%)",
      "type": "number",
      "default": 2.5,
      "min": 0,
      "max": 6
    },
    "Supplemental_benefits_monthly_usd": {
      "label": "Supplemental Private Health / Pension Stipend (USD/mo)",
      "type": "number",
      "default": 250,
      "min": 0,
      "max": 3000
    },
    "entity_setup_capex_usd": {
      "label": "Local Subsidiary Incorporation & Bank Setup CapEx (USD)",
      "type": "number",
      "default": 14000,
      "min": 1500,
      "max": 80000
    },
    "entity_annual_maint_usd": {
      "label": "Annual Local Accounting, Payroll & Tax Filing OpEx (USD/yr)",
      "type": "number",
      "default": 18000,
      "min": 3000,
      "max": 120000
    },
    "horizon_months": {
      "label": "Workforce Planning Horizon (Months)",
      "type": "number",
      "default": 24,
      "min": 6,
      "max": 60
    }
  },
  "formulas_summary": {
    "local_gross_base": "S_local = gross_annual_salary * (FX_local_per_USD / FX_funding_per_USD) when input is in funding_currency",
    "statutory_bonus_accrual": "B_stat = S_local * ((M_pay_periods - 12) / 12), where M_pay_periods in {12, 13, 13.33, 14} per country statutory labor code (e.g., PT/ES/AT=14, BR/MX/IT/PH=13, NL=12.96 holiday allowance 8%)",
    "capped_employer_ssc": "SSC_emp = sum_k( min(S_local + B_stat, Cap_k) * r_capped_k ) + (S_local + B_stat) * r_uncapped, anchored to live Eurostat D12_D4_MD5 / D11 employer burden ratio r_eff when unsegmented",
    "statutory_severance_accrual": "SEV_accrual = (S_local + B_stat) * r_severance_statutory (e.g., IT TFR 6.91%, BR FGTS 8.0%, MX/IN statutory gratuity reserve)",
    "total_statutory_employer_cost_local": "C_stat_local = S_local + B_stat + SSC_emp + SEV_accrual",
    "eor_fx_slippage_funding": "FX_loss = (C_stat_local / FX_mid) * (eor_fx_spread_pct / 100)",
    "annual_tco_per_hire_eor": "TCO_eor_1 = (C_stat_local / FX_mid) + FX_loss + 12 * (eor_monthly_fee_usd + supplemental_benefits_monthly_usd) * FX_funding_per_USD",
    "horizon_total_eor": "H_eor(N, T) = N * TCO_eor_1 * (T / 12)",
    "horizon_total_own_entity": "H_entity(N, T) = entity_setup_capex + (T / 12) * (entity_annual_maint + N * ((C_stat_local / FX_mid) * 1.0035 + 12 * (45 + supplemental_benefits_monthly_usd)))",
    "headcount_breakeven": "N_star(T) = (entity_setup_capex + (T / 12) * entity_annual_maint) / ((T / 12) * (12 * (eor_monthly_fee_usd - 45) + (C_stat_local / FX_mid) * ((eor_fx_spread_pct / 100) - 0.0035)))"
  },
  "pro_api_endpoint": "https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-eor-payroll-calc/dataset",
  "auth_header": "Authorization: Bearer <POLAR_LICENSE_KEY>",
  "purchase_tiers": [
    {
      "sku_key": "eor_dataset_snapshot",
      "product_id": "0b49acf8-5e4b-4a1b-a67c-7fa1c42d9cb7",
      "name": "Global EOR Statutory Tax & FX Dataset Snapshot (CSV/JSON)",
      "price_usd": 39,
      "billing": "one_time",
      "checkout_url": "https://buy.polar.sh/polar_cl_rgRSKfsPmgCahl7TB4xx45ipwP5la9PHFsl5j1xtUuc"
    },
    {
      "sku_key": "eor_pro_license",
      "product_id": "50c72494-d115-4d9d-9b20-1400771aed6f",
      "name": "Pro Cross-Border Payroll FinOps & Batch CSV License Key",
      "price_usd": 29,
      "billing": "month",
      "checkout_url": "https://buy.polar.sh/polar_cl_qmeUIhRJCMb5pJyLWEz5c7SvJR51i0RNUeOgD0OHlkO"
    },
    {
      "sku_key": "eor_entity_audit_pack",
      "product_id": "db825f4f-1693-441f-a635-e3181513ddef",
      "name": "CFO Global Expansion: EOR-to-Subsidiary Break-Even Pack",
      "price_usd": 89,
      "billing": "one_time",
      "checkout_url": "https://buy.polar.sh/polar_cl_APIzBPNcFSfiVExNeZqiLQBfxQBbVgGyJerq34avtqd"
    }
  ],
  "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"
    }
  }
}