{
  "schemaVersion": 1,
  "slug": "soccer-stats-calculator",
  "category": "sports",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "d3d27b3b19caee289d49f71ee0c65c65875043b6b771c94bd825d646dd244cc0",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/soccer-stats-calculator.json",
    "src/engine.js"
  ],
  "runtimeSource": "/sources/engine.txt",
  "runtimeHash": "5c888d8898afbdee36267bb9977829e1e2ac568f6677c8ee87469c139864645c",
  "scope": "The compute function records implemented equations, constants, lookup tables and custom rules. Inputs record defaults and allowed values; outputs record precision and units. Defaults are examples, not recommendations. General background references are not evidence for this specific algorithm.",
  "publishedFormula": {
    "formula": "G90 = 90G÷M; A90 = 90A÷M; C% = G÷S×100; x = G − xG",
    "vars": [
      [
        "G",
        "Goals"
      ],
      [
        "A",
        "Assists"
      ],
      [
        "M",
        "Minutes played"
      ],
      [
        "S",
        "Shots"
      ],
      [
        "xG",
        "Expected goals"
      ],
      [
        "C%",
        "Shot conversion (%)"
      ],
      [
        "G90",
        "Goals per 90 minutes"
      ],
      [
        "A90",
        "Assists per 90 minutes"
      ],
      [
        "x",
        "Goals minus expected goals"
      ]
    ],
    "note": "Goals/90 and assists/90 divide totals by minutes/90; conversion = goals ÷ shots × 100; xG difference = goals − xG. Zero denominators are undefined."
  },
  "externalEvidence": {
    "reviewedAt": "2026-10-12",
    "sources": [
      {
        "name": "NCAA — Official statistics manuals",
        "url": "https://www.ncaa.org/championships/statistics-and-records/"
      }
    ],
    "referenceRole": "definition",
    "implementationHash": "d3d27b3b19caee289d49f71ee0c65c65875043b6b771c94bd825d646dd244cc0",
    "basis": "G90 = 90G÷M; A90 = 90A÷M; C% = G÷S×100; x = G − xG",
    "limitations": "The references explain definitions and methods; any extra preset must be checked against the assumptions on this page."
  },
  "contract": {
    "compute": "const nineties = minutes > 0 ? minutes/90 : 0; const goalsPer90 = nineties > 0 ? goals/nineties : null; const assistsPer90 = nineties > 0 ? assists/nineties : null; const conversionRate = shots > 0 ? goals/shots*100 : null; const overperformance = goals-xG; return { goalsPer90, assistsPer90, goalContributions: goalsPer90!==null && assistsPer90!==null ? goalsPer90+assistsPer90 : null, conversionRate, overperformance, goalContributions: goalsPer90!==null && assistsPer90!==null ? goalsPer90+assistsPer90 : null };",
    "inputs": [
      {
        "name": "goals",
        "type": "number",
        "default": 12,
        "min": 0,
        "max": 200,
        "step": 1,
        "slider": true
      },
      {
        "name": "assists",
        "type": "number",
        "default": 7,
        "min": 0,
        "max": 200,
        "step": 1,
        "slider": true
      },
      {
        "name": "minutes",
        "type": "number",
        "default": 2160,
        "min": 0,
        "max": 6000,
        "step": 1,
        "slider": true
      },
      {
        "name": "shots",
        "type": "number",
        "default": 55,
        "min": 0,
        "max": 500,
        "step": 1,
        "slider": true
      },
      {
        "name": "xG",
        "type": "number",
        "default": 9.5,
        "min": 0,
        "max": 200,
        "step": 0.1,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "goalsPer90",
        "precision": 2,
        "unit": "",
        "optional": true
      },
      {
        "name": "assistsPer90",
        "precision": 2,
        "unit": "",
        "optional": true
      },
      {
        "name": "conversionRate",
        "precision": 1,
        "unit": "%",
        "optional": true
      },
      {
        "name": "overperformance",
        "precision": 2,
        "unit": ""
      },
      {
        "name": "goalContributions",
        "precision": 2,
        "unit": "",
        "optional": true
      }
    ],
    "interpret": null
  }
}
