{
  "schemaVersion": 1,
  "slug": "hockey-stats-calculator",
  "category": "sports",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "d1890e80e71b9c3da9372382426e937f34aa2e921bc8fb5b2a0b3fc38a8e01fc",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/hockey-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": "SV% = saves/shots; GAA = GA×60/min; P=G+A; PPG=P/GP",
    "vars": [
      [
        "Sa",
        "saves"
      ],
      [
        "Sh",
        "shots faced"
      ],
      [
        "GA",
        "goals against"
      ],
      [
        "Min",
        "minutes played"
      ],
      [
        "G",
        "goals scored"
      ],
      [
        "A",
        "assists"
      ]
    ],
    "note": "SV% = saves/shots faced; GAA = goals against×60/minutes; P=G+A; PPG=P/games. Inputs require integer, consistent totals. Grade bands are illustrative fixed cutoffs, not current or official league rankings."
  },
  "externalEvidence": {
    "reviewedAt": "2026-10-12",
    "sources": [
      {
        "name": "NCAA — Official statistics manuals",
        "url": "https://www.ncaa.org/championships/statistics-and-records/"
      }
    ],
    "referenceRole": "definition",
    "implementationHash": "d1890e80e71b9c3da9372382426e937f34aa2e921bc8fb5b2a0b3fc38a8e01fc",
    "basis": "SV% = saves/shots; GAA = GA×60/min; P=G+A; PPG=P/GP",
    "limitations": "The references explain definitions and methods; any extra preset must be checked against the assumptions on this page."
  },
  "contract": {
    "compute": "const savePct=shotsAgainst>0?saves/shotsAgainst*100:0; const gaa=minutesPlayed>0?goalsAgainst*60/minutesPlayed:0; const points=goals+assists; const ppg=gamesPlayed>0?points/gamesPlayed:0; const grade=savePct>=92?'Elite goaltending':savePct>=91?'Strong starter':savePct>=90?'League average':savePct>=88?'Below average':'Struggling'; const totalsCheck=saves+goalsAgainst===shotsAgainst?'Totals reconcile':'Check: saves plus goals against should equal shots faced'; return {savePct,gaa,points,pointsPerGame:ppg,grade,totalsCheck};",
    "inputs": [
      {
        "name": "saves",
        "type": "number",
        "default": 850,
        "min": 0,
        "max": 10000,
        "step": 1
      },
      {
        "name": "shotsAgainst",
        "type": "number",
        "default": 920,
        "min": 1,
        "max": 10000,
        "step": 1
      },
      {
        "name": "goalsAgainst",
        "type": "number",
        "default": 70,
        "min": 0,
        "max": 5000,
        "step": 1,
        "slider": true
      },
      {
        "name": "minutesPlayed",
        "type": "number",
        "default": 2400,
        "min": 1,
        "max": 20000,
        "step": 1
      },
      {
        "name": "gamesPlayed",
        "type": "number",
        "default": 40,
        "min": 1,
        "max": 200,
        "step": 1,
        "slider": true
      },
      {
        "name": "goals",
        "type": "number",
        "default": 5,
        "min": 0,
        "max": 200,
        "step": 1,
        "slider": true
      },
      {
        "name": "assists",
        "type": "number",
        "default": 12,
        "min": 0,
        "max": 300,
        "step": 1,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "savePct",
        "precision": 2,
        "unit": "%"
      },
      {
        "name": "gaa",
        "precision": 2,
        "unit": ""
      },
      {
        "name": "points",
        "precision": 0,
        "unit": ""
      },
      {
        "name": "pointsPerGame",
        "precision": 2,
        "unit": ""
      },
      {
        "name": "grade",
        "precision": 0,
        "unit": "",
        "type": "text"
      },
      {
        "name": "totalsCheck",
        "precision": 0,
        "unit": "",
        "type": "text"
      }
    ],
    "interpret": null
  }
}
