Repository navigation
Account for payroll giving in employment tax and benefit income - #2964
juaristi22 wants to merge 2 commits into
Conversation
Aggregate impact on certified data: passBase Checks: 0 broken by this change, 1 failing on both sides, 0 fixed. Moves flagged for review: 0 (thresholds in Notes
Moves flagged for reviewNone. Spending by benefit and service
Caseloads
Household net income by decileNo household's net income changes in any year. No change in any year: receipts by tax head; government balance, each component counted once; model totals; household income totals; population; poverty rates; people in poverty; inequality; mean household net income in each side's own deciles; standard reform costings (change in gov_balance); standard reforms: change in each reform's target. Checks failing on both base and head (1)
Counted-once checkThe check raised each of 92 components by £1 per unit in 2026-27 and read every head of its totals household by household: its own head must rise by exactly £1, no other tax head may move, no other benefit may rise, and the model's own total must move by what its heads moved. A response that is not finite breaks every rule. The check measures a head that breaks a rule twice more: once holding every other head at its baseline value, and once holding every other head at its value after the first £1 while the component rises again. The head fails where either measurement still shows the response. The check cannot hold a head at a value that is not finite. In each unit where another head is not finite after the first £1, it holds that head at its baseline value, and the second measurement judges no household the unit belongs to. There a head fails wherever it first broke a rule, or wherever the check could not confirm whether its response contains the component. 0 failed and the check skipped 0.
Provenance
Dataset: Receipts by tax head: head levels
Spending by benefit and service: head levels
Caseloads: head levels
Government balance, each component counted once: head levels
Model totals: head levels
Household income totals: head levels
Population: head levels
Poverty rates: head levels
People in poverty: head levels
Inequality: head levels
Mean household net income in each side's own deciles: head levels
Standard reform costings (change in gov_balance): head levels
Standard reforms: change in each reform's target: head levels
|
Fixes #1997
Adds
payroll_givingfor qualifying donations already withheld from employment pay. PAYE taxable earnings, Universal Credit earnings and claimant tax-credit income deduct the donation. The relief-cap income base adds it back, including the separate pension annual-allowance calculation used with net-pay contributions and trading losses. Shared legacy tax counterfactuals clear the employment donation when they remove all employment sources.For the tested 2024/25 single claimant earning £20,000 and paying £6,000 council rent, a £1,200 donation reduces Income Tax from £1,486 to £1,246 and increases annual UC from £865.62 to £1,393.62. Employee NI stays £594.40. Other cases cover individual attribution in a couple, the benefit-cap earnings boundary, childcare income conditions, Pension Credit and the pension relief-cap interaction.
The input is the non-negative, legally qualifying amount already withheld from taxable employment pay. It includes employer-paid statutory pay and excludes donations withheld from pensions or other social-security benefits and does not calculate scheme eligibility or admissible amounts from requested gifts. Enter gross employment income and avoid entering the same donation as Gift Aid or employment expenses. Existing gross-earnings and household-income conventions remain: household income does not subtract voluntary charitable spending.
Reproducer: policyengine_uk/tests/policy/baseline/gov/hmrc/income_tax/deductions/payroll_giving.yaml; policyengine_uk/tests/policy/baseline/gov/hmrc/income_tax/deductions/payroll_giving_conditions.yaml
Validation: 1,415 affected YAML cases and 34 Python tests passed with zero failures, errors or skips (1,449 distinct post-review tests). The 15 targeted YAML cases are included in that total. Python ran across six affected helper/cache/override modules with
-n 4 --dist worksteal.uv run --frozen --extra dev --offline --no-sync make formatpassed; formatting preserved every tested byte and Python AST.The final CTC regression retains the model's existing annual approximation; it does not certify HMRC's daily award rounding. Private population tests were not run locally. Full/data checks at the pushed head remain for CI; no population effect is inferred from the input default.
axiom: needed