Commit b6c36f5
* Add marginal_tax_rate_wrt_employer_cost (#45)
Mirror the existing `marginal_tax_rate` variable but divide the change
in household net income by the change in the employer's cost of
employment rather than the change in gross pay. The denominator is
`employer_cost` (gross pay plus employer NI, employer pension
contributions, and statutory sick/maternity/paternity pay), so a pound
of employer-side NI is no longer invisible to the MTR.
Computation uses the same simulation-branching pattern as
`marginal_tax_rate` — for each adult, branch the simulation, bump
`employment_income` by the configured delta, recompute, and read both
`household_net_income` and `employer_cost` in the branch. Division-by-
zero is guarded for people whose employer cost happens not to move.
No change to the existing `marginal_tax_rate` variable. Downstream
surfaces (API, household calculator) would need a separate change to
expose the new variable to end users.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Test employer-cost marginal tax rate
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Max Ghenis <mghenis@gmail.com>
1 parent 4accd4b commit b6c36f5
3 files changed
Lines changed: 70 additions & 0 deletions
File tree
- changelog.d
- policyengine_uk
- tests/policy/baseline/household
- variables/household
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
Lines changed: 53 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
0 commit comments