HF RL Explorer

Payroll gross-to-net calculator with inline invented rules: federal-ish withholding brackets per YEAR…

Payroll gross-to-net calculator with inline invented rules: federal-ish withholding brackets per YEAR…: a task in traj2envs-rl: RL tasks generated with traj2envs (Harbor dataset). Computation, in order: 1. n = PERIODS PER YEAR period 2. 401(k): bp = round(k401 pct 100) ; k401 = round half up(gross…

The task

Computation, in order: 1. `n = PERIODS_PER_YEAR[period]` 2. 401(k): `bp = round(k401_pct * 100)`; `k401 = round_half_up(gross_cents * bp, 10_000)` 3. Withholding-taxable pay: `taxable = gross_cents - k401`; `annualized = taxable * n`. `fed_annual` = marginal bracket tax on `annualized`: each bracket's slice of…

Part of harness-hub/traj2envs-rl.