{
  "tool_id": "art-340-compute-flsa-regular-rate",
  "note": "golden_hash filled by golden-parity.test.mjs --update. Vector 1 is the U.S. Department of Labor's own published worked example from Fact Sheet #56C (Bonuses under the FLSA): a $15.00/hr employee works 45 hours, receives a $1.00/hr evening shift differential for 30 of those hours, and earns a $100.00 nondiscretionary bonus for the week. Vector 2: straight 35-hour week, no overtime. Vector 3: zero-hours edge (finite gate).",
  "vectors": [
    {
      "name": "dol_fact_sheet_56c_example",
      "description": "DOL Fact Sheet #56C worked example: $15.00/hr base rate, 45 hours worked, $1.00/hr shift differential for 30 hours ($30.00), $100.00 nondiscretionary bonus for the week. Total remuneration = (45*$15.00) + $30.00 + $100.00 = $675.00+$30.00+$100.00 = $805.00. Regular rate = $805.00/45 = $17.888... -> $17.89. Overtime hours = 5. Overtime premium = 5 * $17.89 * 0.5 = $44.73 (matches DOL's own published figure). Total pay due = $805.00 + $44.73 = $849.73.",
      "policy_parameters": {
        "hours_worked_week": 45,
        "hourly_rate": 15,
        "other_includable_pay": 30,
        "nondiscretionary_bonus_amount": 100
      },
      "output_payload": {
        "regular_rate": 17.89,
        "straight_time_pay": 675,
        "total_remuneration": 805,
        "overtime_hours": 5,
        "overtime_premium_pay": 44.73,
        "total_pay_due": 849.73,
        "hours_worked_week": 45,
        "hourly_rate": 15,
        "nondiscretionary_bonus_amount": 100,
        "other_includable_pay": 30,
        "discretionary_bonus_excluded": 0,
        "constants_version": "2025",
        "regulatory_basis": "29 CFR 778, Subpart C (778.107-778.122): regular rate = all non-excludable remuneration / total hours worked (778.109); nondiscretionary bonuses included (778.110, 778.208-778.209); overtime premium = 0.5x regular rate per hour over 40/week (778.107).",
        "note": "Federal FLSA only; not legal advice. State daily/weekly overtime rules (which may be more protective) out of scope. nondiscretionary_bonus_amount must already be the portion allocated to THIS workweek -- multi-week bonus proration (778.209) is the caller's responsibility."
      },
      "compliance_flags": [
        "FEDERAL_ONLY_NOT_LEGAL_ADVICE",
        "FLSA_OVERTIME_OWED",
        "NONDISCRETIONARY_BONUS_INCLUDED"
      ],
      "golden_hash": "91fb0b560e0ebeabe1714c70a7ffc57017b988f35dc20718e0187b2eac6c1200"
    },
    {
      "name": "no_overtime_35_hours",
      "description": "$20.00/hr, 35 hours, no bonus. Under the 40-hour threshold: regular rate equals the hourly rate, no overtime premium owed.",
      "policy_parameters": {
        "hours_worked_week": 35,
        "hourly_rate": 20
      },
      "output_payload": {
        "regular_rate": 20,
        "straight_time_pay": 700,
        "total_remuneration": 700,
        "overtime_hours": 0,
        "overtime_premium_pay": 0,
        "total_pay_due": 700,
        "hours_worked_week": 35,
        "hourly_rate": 20,
        "nondiscretionary_bonus_amount": 0,
        "other_includable_pay": 0,
        "discretionary_bonus_excluded": 0,
        "constants_version": "2025",
        "regulatory_basis": "29 CFR 778, Subpart C (778.107-778.122): regular rate = all non-excludable remuneration / total hours worked (778.109); nondiscretionary bonuses included (778.110, 778.208-778.209); overtime premium = 0.5x regular rate per hour over 40/week (778.107).",
        "note": "Federal FLSA only; not legal advice. State daily/weekly overtime rules (which may be more protective) out of scope. nondiscretionary_bonus_amount must already be the portion allocated to THIS workweek -- multi-week bonus proration (778.209) is the caller's responsibility."
      },
      "compliance_flags": [
        "FEDERAL_ONLY_NOT_LEGAL_ADVICE"
      ],
      "golden_hash": "52d392c65445c0be6561909d0f9ec4a98a1ee15b97cdaf26313a1275ca496a82"
    },
    {
      "name": "zero_hours_edge",
      "description": "Zero hours worked. Finite gate: regular rate must resolve to 0, never a divide-by-zero NaN/Infinity, and FLSA_ZERO_HOURS flags.",
      "policy_parameters": {
        "hours_worked_week": 0,
        "hourly_rate": 0
      },
      "output_payload": {
        "regular_rate": 0,
        "straight_time_pay": 0,
        "total_remuneration": 0,
        "overtime_hours": 0,
        "overtime_premium_pay": 0,
        "total_pay_due": 0,
        "hours_worked_week": 0,
        "hourly_rate": 0,
        "nondiscretionary_bonus_amount": 0,
        "other_includable_pay": 0,
        "discretionary_bonus_excluded": 0,
        "constants_version": "2025",
        "regulatory_basis": "29 CFR 778, Subpart C (778.107-778.122): regular rate = all non-excludable remuneration / total hours worked (778.109); nondiscretionary bonuses included (778.110, 778.208-778.209); overtime premium = 0.5x regular rate per hour over 40/week (778.107).",
        "note": "Federal FLSA only; not legal advice. State daily/weekly overtime rules (which may be more protective) out of scope. nondiscretionary_bonus_amount must already be the portion allocated to THIS workweek -- multi-week bonus proration (778.209) is the caller's responsibility."
      },
      "compliance_flags": [
        "FEDERAL_ONLY_NOT_LEGAL_ADVICE",
        "FLSA_ZERO_HOURS"
      ],
      "golden_hash": "597f3f463b38c559fe4ecae0e7ae01472a7603c0a1f3e01ac05ac27053e8554b"
    }
  ]
}
