{
  "schemaVersion": 1,
  "slug": "overtime-pay-calculator",
  "category": "finance",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "1adc672329565ba58f0a5f5ed2015361904426a6645cbbee2e83fd82e68b1848",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/overtime-pay-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": "T = r×H + r×m×h",
    "vars": [
      [
        "T",
        "total pay"
      ],
      [
        "r",
        "hourly rate"
      ],
      [
        "H",
        "regular hours"
      ],
      [
        "h",
        "overtime hours"
      ],
      [
        "m",
        "overtime multiplier"
      ]
    ],
    "note": "Regular pay = hourly rate × regular hours. Overtime = hourly rate × user-entered multiplier × overtime hours. Combined hours above 168 per week are rejected; applicable legal eligibility and tax treatment vary by jurisdiction."
  },
  "externalEvidence": {
    "reviewedAt": "2026-10-12",
    "sources": [
      {
        "name": "US Department of Labor — Hours worked and overtime under the FLSA",
        "url": "https://www.dol.gov/agencies/whd/fact-sheets/22-flsa-hours-worked"
      }
    ],
    "referenceRole": "context",
    "implementationHash": "1adc672329565ba58f0a5f5ed2015361904426a6645cbbee2e83fd82e68b1848",
    "basis": "T = r×H + r×m×h",
    "limitations": "The references provide context and limitations. They do not validate this page’s illustrative multipliers, lookup values or predictions."
  },
  "contract": {
    "compute": "if(regularHours+overtimeHours>168)return{regularPay:null,overtimePay:null,totalPay:null,overtimeRate:null,__error:'inputError'};const regularPay=hourlyRate*regularHours,otRate=hourlyRate*multiplier,overtimePay=otRate*overtimeHours;return{regularPay,overtimePay,totalPay:regularPay+overtimePay,overtimeRate:otRate};",
    "inputs": [
      {
        "name": "hourlyRate",
        "type": "number",
        "default": 25,
        "min": 0,
        "max": 10000,
        "step": 0.25
      },
      {
        "name": "regularHours",
        "type": "number",
        "default": 40,
        "min": 0,
        "max": 168,
        "step": 0.5,
        "slider": true
      },
      {
        "name": "overtimeHours",
        "type": "number",
        "default": 5,
        "min": 0,
        "max": 168,
        "step": 0.5,
        "slider": true
      },
      {
        "name": "multiplier",
        "type": "number",
        "default": 1.5,
        "min": 1,
        "max": 3,
        "step": 0.1,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "totalPay",
        "precision": 2,
        "unit": "$"
      },
      {
        "name": "regularPay",
        "precision": 2,
        "unit": "$"
      },
      {
        "name": "overtimePay",
        "precision": 2,
        "unit": "$"
      },
      {
        "name": "overtimeRate",
        "precision": 2,
        "unit": "$"
      }
    ],
    "interpret": null
  }
}
