diff --git a/changelog.d/1997.fixed.md b/changelog.d/1997.fixed.md new file mode 100644 index 0000000000..197c0320e2 --- /dev/null +++ b/changelog.d/1997.fixed.md @@ -0,0 +1 @@ +Added employment Payroll Giving donations and their Income Tax, Universal Credit and related income-test treatment. diff --git a/policyengine_uk/tests/policy/baseline/gov/hmrc/income_tax/deductions/payroll_giving.yaml b/policyengine_uk/tests/policy/baseline/gov/hmrc/income_tax/deductions/payroll_giving.yaml new file mode 100644 index 0000000000..33979324a4 --- /dev/null +++ b/policyengine_uk/tests/policy/baseline/gov/hmrc/income_tax/deductions/payroll_giving.yaml @@ -0,0 +1,431 @@ +# Frozen independent legal oracles for employment-only, actual qualifying +# payroll donations withheld by a PAYE payer (UC reg 55(5)(c); ITEPA s713). +# Amounts use the inherited annual UK fiscal-year representation. They do not +# certify a monthly RTI/PAYE payroll schedule. Primary references: +# https://www.legislation.gov.uk/uksi/2013/376/regulation/55 +# https://www.legislation.gov.uk/ukpga/2003/1/section/713 +# https://www.legislation.gov.uk/ukpga/2007/3/section/24A +# https://www.gov.uk/payroll-giving +# https://www.gov.uk/government/publications/benefit-and-pension-rates-2024-to-2025/benefit-and-pension-rates-2024-to-2025 + +- name: Case 1, zero payroll giving retains taxed earnings and positive Universal Credit. + period: 2024 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + employment_income: 20_000 + payroll_giving: 0 + benunits: + family: + members: [person1] + would_claim_uc: true + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + tenure_type: RENT_FROM_COUNCIL + rent: 6_000 + output: + taxable_employment_income: 20_000 + income_tax: 1_486 + ni_class_1_employee: 594.40 + adjusted_net_income: 20_000 + adjusted_total_income: 20_000 + uc_individual_earned_income_before_mif: 17_919.60 + uc_earned_income: 17_919.60 + universal_credit_pre_benefit_cap: 865.62 + universal_credit: 865.62 + +- name: Case 2, actual payroll giving lowers tax and UC earnings while preserving gross earnings consumers. + period: 2024 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + employment_income: 20_000 + payroll_giving: 1_200 + benunits: + family: + members: [person1] + would_claim_uc: true + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + tenure_type: RENT_FROM_COUNCIL + rent: 6_000 + output: + taxable_employment_income: 18_800 + income_tax: 1_246 + ni_class_1_employee: 594.40 + adjusted_net_income: 18_800 + adjusted_total_income: 20_000 + uc_individual_earned_income_before_mif: 16_959.60 + uc_earned_income: 16_959.60 + universal_credit_pre_benefit_cap: 1_393.62 + universal_credit: 1_393.62 + pension_credit_earnings: 20_000 + housing_benefit_net_earnings: 18_159.60 + tax_free_childcare_expected_declaration_period_income: 5_000 + +- name: Case 3, each joint claimant keeps their own donation and tax deductions. + period: 2024 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + employment_income: 40_000 + payroll_giving: 0 + person2: + age: 38 + employment_income: 10_000 + payroll_giving: 1_000 + benunits: + family: + members: [person1, person2] + # Unmarried cohabitants make a joint UC claim without a spousal tax transfer. + # ITA 2007 s55C(1)(a): https://www.legislation.gov.uk/ukpga/2007/3/section/55C/2024-04-06 + is_married: false + would_claim_uc: true + households: + household: + members: [person1, person2] + country: ENGLAND + region: LONDON + tenure_type: RENT_FROM_COUNCIL + rent: 20_000 + output: + taxable_employment_income: [40_000, 9_000] + income_tax: [5_486, 0] + ni_class_1_employee: [2_194.40, 0] + adjusted_net_income: [40_000, 9_000] + adjusted_total_income: [40_000, 10_000] + uc_individual_earned_income_before_mif: [32_319.60, 9_000] + uc_earned_income: 41_319.60 + universal_credit_pre_benefit_cap: 4_685.42 + universal_credit: 4_685.42 + +- name: Case 4, a Gift Aid gift does not become a payroll giving deduction from UC earnings. + period: 2024 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + employment_income: 20_000 + payroll_giving: 0 + gift_aid: 1_000 + benunits: + family: + members: [person1] + would_claim_uc: true + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + tenure_type: RENT_FROM_COUNCIL + rent: 6_000 + output: + taxable_employment_income: 20_000 + income_tax: 1_486 + ni_class_1_employee: 594.40 + adjusted_net_income: 18_750 + uc_individual_earned_income_before_mif: 17_919.60 + universal_credit: 865.62 + +- name: Case 5, payroll giving restores the personal allowance through adjusted net income. + period: 2024 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + employment_income: 110_000 + payroll_giving: 20_000 + benunits: + family: + members: [person1] + would_claim_uc: false + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + output: + taxable_employment_income: 90_000 + adjusted_net_income: 90_000 + personal_allowance: 12_570 + income_tax: 23_432 + ni_class_1_employee: 4_210.60 + adjusted_total_income: 110_000 + tax_free_childcare_expected_declaration_period_income: 27_500 + +- name: Case 6, the relief cap adds back payroll giving while adjusted net income remains reduced. + period: 2024 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + employment_income: 240_000 + payroll_giving: 40_000 + benunits: + family: + members: [person1] + would_claim_uc: false + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + output: + taxable_employment_income: 200_000 + adjusted_net_income: 200_000 + personal_allowance: 0 + income_tax: 76_203 + ni_class_1_employee: 6_810.60 + adjusted_total_income: 240_000 + income_tax_relief_cap: 60_000 + +- name: Case 7, a donation can consume all pay below the personal allowance without creating negative UC earnings. + period: 2024 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + employment_income: 10_000 + payroll_giving: 10_000 + benunits: + family: + members: [person1] + would_claim_uc: true + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + tenure_type: OWNED_OUTRIGHT + output: + taxable_employment_income: 0 + income_tax: 0 + ni_class_1_employee: 0 + adjusted_net_income: 0 + adjusted_total_income: 10_000 + uc_individual_earned_income_before_mif: 0 + uc_earned_income: 0 + universal_credit_pre_benefit_cap: 4_721.40 + universal_credit: 4_721.40 + tax_free_childcare_expected_declaration_period_income: 2_500 + +- name: Case 8, tax credits deduct payroll giving while the childcare work-income test retains gross pay. + period: 2024 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 35 + employment_income: 17_000 + payroll_giving: 1_000 + child_tax_credit_reported: 1 + person2: + age: 2 + date_of_birth: 20220101 + benunits: + family: + members: [person1, person2] + would_claim_uc: false + households: + household: + members: [person1, person2] + country: ENGLAND + region: LONDON + output: + taxable_employment_income: [16_000, 0] + income_tax: [686, 0] + ni_class_1_employee: [354.40, 0] + tax_credits_current_year_income: 16_000 + tax_credits_applicable_income: 16_000 + tax_free_childcare_expected_declaration_period_income: [4_250, 0] + +- name: Case 9, payroll giving is not a direct Pension Credit earnings disregard. + period: 2024 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 70 + employment_income: 10_000 + payroll_giving: 1_000 + state_pension: 0 + benunits: + family: + members: [person1] + would_claim_uc: false + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + output: + taxable_employment_income: 9_000 + income_tax: 0 + ni_class_1_employee: 0 + pension_credit_earnings: 10_000 + pension_credit_earnings_disregard: 260 + pension_credit_income: 9_740 + guarantee_credit: 1_603.80 + housing_benefit_net_earnings: 10_000 + +# Addendum: final CTC under the inherited annual-rate model contract. +# SI2002/2007reg7@2024: child3455+family545 =4000 annual maximum. +# SI2002/2008reg8@2024: threshold19995, taper41%; SI2002/2006reg4(5): s713 deduction. +# Without PG: 4000-.41*(25000-19995)=1947.95; withPG1200:2439.95; delta492. +# This annual approximation does not certify HMRC's daily-rounding cash award. +# https://www.legislation.gov.uk/uksi/2002/2007/regulation/7/2024-04-06 +# https://www.legislation.gov.uk/uksi/2002/2008/regulation/8/2024-04-06 +# https://www.legislation.gov.uk/uksi/2002/2006/regulation/4 +- name: Case 10, payroll giving increases a continuing claimant's positive annual-model Child Tax Credit. + period: 2024 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 35 + hours_worked: 624 + employment_income: 25_000 + payroll_giving: 1_200 + child_tax_credit_reported: 1 + person2: + age: 8 + date_of_birth: 20160405 + benunits: + family: + members: [person1, person2] + would_claim_uc: false + households: + household: + members: [person1, person2] + country: ENGLAND + region: LONDON + output: + weekly_hours: [12, 0] + income_tax: [2_246, 0] + ni_class_1_employee: [994.40, 0] + tax_credits_current_year_income: 23_800 + CTC_maximum_rate: 4_000 + working_tax_credit: 0 + child_tax_credit: 2_439.95 + tax_credits: 2_439.95 + +# Addendum: the positive-net-pay AND current-loss helper rebuild branch. +# FA2004s193(2): 400000-100000PG-20000netpay=280000 statutory total income. +# ITA2007s24A(8): ATI280000+100000PG=380000; cap25%=95000; allowableloss95000. +# FA2004s228ZA: thresholdincome185000; adjustedincome185000+20000+170000-20000=355000. +# Threshold185000 does not exceed200000, so the annual allowance remains60000. +# https://www.legislation.gov.uk/ukpga/2007/3/section/24A +# https://www.legislation.gov.uk/ukpga/2004/12/section/193/2024-04-06 +# https://www.legislation.gov.uk/ukpga/2004/12/section/228ZA/2024-04-06 +# https://www.legislation.gov.uk/ukpga/2004/12/section/228/2024-04-06 +- name: Case 11, payroll giving is added back when net pay and a trading loss rebuild the pension income tests. + period: 2024 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 45 + employment_income: 400_000 + payroll_giving: 100_000 + employee_pension_contributions_reported: 20_000 + employer_pension_contributions: 150_000 + defined_benefit_pension_share: 0 + trading_loss: 100_000 + benunits: + family: + members: [person1] + would_claim_uc: false + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + output: + total_income_charged_to_tax: 280_000 + adjusted_total_income: 380_000 + income_tax_relief_cap: 95_000 + trade_loss_relief_against_general_income: 95_000 + adjusted_net_income: 185_000 + pension_annual_allowance_threshold_income: 185_000 + pension_annual_allowance_adjusted_income: 355_000 + pension_annual_allowance: 60_000 + +# Source-bound counterfactuals: ITEPA 2003 s713 and ITA 2007 s24A(8). +# Actual total=240000-100000+150000=290000; ATI390000; loss cap97500; +# net192500 and tax72828. Natural no-employment/no-giving total150000; +# loss cap50000; net100000; PA12570 and tax27432. Employment tax45396. +# Only counted private-pension income remains after zeroing earnings, so +# residual uncounted-income tax is zero. This tests tax attribution: +# Guarantee Credit is nil in both households; no positive paid effect is claimed. +# https://www.legislation.gov.uk/ukpga/2003/1/section/713 +# https://www.legislation.gov.uk/ukpga/2007/3/section/24A +- name: Case 12, earnings-zeroed tax branches remove payroll giving with its employment source. + period: 2024 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 70 + employment_income: 240_000 + payroll_giving: 100_000 + private_pension_income: 150_000 + state_pension: 0 + employee_pension_contributions_reported: 0 + employer_pension_contributions: 0 + personal_pension_contributions: 0 + trading_loss: 100_000 + person2: + age: 70 + employment_income: 0 + payroll_giving: 0 + private_pension_income: 150_000 + state_pension: 0 + employee_pension_contributions_reported: 0 + employer_pension_contributions: 0 + personal_pension_contributions: 0 + trading_loss: 100_000 + benunits: + actual: + members: [person1] + is_married: false + would_claim_uc: false + natural_reference: + members: [person2] + is_married: false + would_claim_uc: false + households: + actual_home: + members: [person1] + country: ENGLAND + region: LONDON + reference_home: + members: [person2] + country: ENGLAND + region: LONDON + output: + income_tax_before_winter_fuel_payment_charge: [72_828, 27_432] + adjusted_total_income: [390_000, 150_000] + trade_loss_relief_against_general_income: [97_500, 50_000] + pension_credit_income_tax_without_employment_income: [27_432, 27_432] + pension_credit_income_tax_without_earnings: [27_432, 27_432] + pension_credit_employment_income_tax: [45_396, 0] + pension_credit_self_employment_income_tax: [0, 0] + legacy_means_test_uncounted_income_tax_without_earnings: [0, 0] + legacy_means_test_deducted_income_tax: [72_828, 27_432] + guarantee_credit: [0, 0] diff --git a/policyengine_uk/tests/policy/baseline/gov/hmrc/income_tax/deductions/payroll_giving_conditions.yaml b/policyengine_uk/tests/policy/baseline/gov/hmrc/income_tax/deductions/payroll_giving_conditions.yaml new file mode 100644 index 0000000000..a347fcf381 --- /dev/null +++ b/policyengine_uk/tests/policy/baseline/gov/hmrc/income_tax/deductions/payroll_giving_conditions.yaml @@ -0,0 +1,67 @@ +# Exact Boolean consumer tests have no absolute_error_margin. +# These assert income conditions, not childcare awards. Primary references: +# https://www.legislation.gov.uk/uksi/2013/376/regulation/82 +# https://www.legislation.gov.uk/uksi/2013/376/regulation/6 +# https://www.legislation.gov.uk/uksi/2015/448/regulation/10 +# https://www.legislation.gov.uk/ukpga/2007/3/section/58 + +- name: Case 1, payroll giving leaves net earnings exactly at the UC cap exception threshold. + period: 2024 + input: + people: + person1: + age: 40 + employment_income: 10_000 + payroll_giving: 484 + benunits: + family: + members: [person1] + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + output: + uc_benefit_cap_earnings_exception_threshold: 9_516 + uc_individual_earned_income_before_mif: 9_516 + is_uc_benefit_cap_exempt_earnings: true + +- name: Case 2, one further pound of payroll giving loses the UC earnings exception. + period: 2024 + input: + people: + person1: + age: 40 + employment_income: 10_000 + payroll_giving: 485 + benunits: + family: + members: [person1] + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + output: + uc_individual_earned_income_before_mif: 9_515 + is_uc_benefit_cap_exempt_earnings: false + +- name: Case 3, payroll giving lowers ANI without reducing Tax-Free Childcare gross work income. + period: 2024 + input: + people: + person1: + age: 40 + employment_income: 110_000 + payroll_giving: 20_000 + benunits: + family: + members: [person1] + would_claim_uc: false + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + output: + tax_free_childcare_meets_income_requirements: true diff --git a/policyengine_uk/tests/test_pension_credit_tax_branch_reuse.py b/policyengine_uk/tests/test_pension_credit_tax_branch_reuse.py index e5f7a28369..3587a0bd59 100644 --- a/policyengine_uk/tests/test_pension_credit_tax_branch_reuse.py +++ b/policyengine_uk/tests/test_pension_credit_tax_branch_reuse.py @@ -3,8 +3,12 @@ import numpy as np import pytest +from policyengine_core import periods from policyengine_uk import Simulation from policyengine_uk.tests.test_uc_non_dep_pension_credit import YEAR, mixed_families +from policyengine_uk.variables.gov.dwp.pension_credit.pension_credit_earnings_income_tax import ( + income_tax_with_inputs_zeroed, +) pytestmark = pytest.mark.usefixtures("cloned_uk_tax_benefit_system") @@ -105,3 +109,49 @@ def test_earnings_tax_reuse_preserves_calculation_order_and_changed_inputs(): ) assert not pc_first.calculate("uc_non_dep_receives_pension_credit", YEAR)[1] assert pc_first.branches == {} + + +def test_unearned_income_counterfactual_preserves_qualifying_payroll_giving(): + """Zeroing pension income leaves the employee's valid donation in place.""" + year = 2024 + sim = Simulation( + situation={ + "people": { + "person1": { + "age": {year: 60}, + "employment_income": {year: 20_000}, + "payroll_giving": {year: 1_200}, + "private_pension_income": {year: 1_000}, + } + }, + "benunits": { + "family": { + "members": ["person1"], + "is_married": {year: False}, + "would_claim_uc": {year: False}, + } + }, + "households": { + "household": { + "members": ["person1"], + "country": {year: "ENGLAND"}, + "region": {year: "LONDON"}, + } + }, + } + ) + # ITEPA s713 still applies because the employment remains. At the + # 2024 basic rate, actual tax is (20000-1200+1000-12570)*20%=1446. + np.testing.assert_allclose( + sim.calculate("income_tax_before_winter_fuel_payment_charge", year), + [1_446], + atol=0.01, + rtol=0, + ) + tax_without_pension = income_tax_with_inputs_zeroed( + sim, periods.period(year), ["private_pension_income"] + ) + # Removing only pension gives (20000-1200-12570)*20%=1246. Clearing + # payroll giving as well would incorrectly produce1486. + np.testing.assert_allclose(tax_without_pension, [1_246], atol=0.01, rtol=0) + assert sim.branches == {} diff --git a/policyengine_uk/tests/test_uc_earnings_deductions_properties.py b/policyengine_uk/tests/test_uc_earnings_deductions_properties.py index 64d185e41d..f93301ac04 100644 --- a/policyengine_uk/tests/test_uc_earnings_deductions_properties.py +++ b/policyengine_uk/tests/test_uc_earnings_deductions_properties.py @@ -2,8 +2,10 @@ UC Regs 2013 reg. 55(5) and reg. 57(2) deduct from a person's earnings their own relievable pension contributions, the income tax and National Insurance -they pay in respect of their employment or trade, and payroll giving (reg. -55(5)(c), which the model does not have). The model takes +they pay in respect of their employment or trade, and qualifying payroll +giving withheld under an approved scheme (reg. 55(5)(c)). The generated +populations below leave payroll giving at zero; focused policy YAML tests +cover nonzero donations. The model takes earnings as the lowest slice of the person's non-savings income, after their allowances, with other income above it (ITA 2007 s. 16 for savings and dividends). diff --git a/policyengine_uk/utils/pensions.py b/policyengine_uk/utils/pensions.py index 67d8799828..a142fef187 100644 --- a/policyengine_uk/utils/pensions.py +++ b/policyengine_uk/utils/pensions.py @@ -106,7 +106,8 @@ def annual_allowance_net_income(person, period, parameters): ) # Rebuild adjusted_total_income (s.24A(8)) from actual pay and member # contributions, retaining its treatment of brought-forward trade losses - # and pension relief. Brought-forward losses only reduce trading profits. + # and pension relief. Step 2 adds back the allowed Payroll Giving + # deduction. Brought-forward losses only reduce trading profits. losses_brought_forward_deducted = trading_profits_before_losses( person, period, hmrc ) - person("taxable_self_employment_income", period) @@ -119,7 +120,10 @@ def annual_allowance_net_income(person, period, parameters): ) adjusted_total = np.maximum( 0, - income_before_loss + losses_brought_forward_deducted - relieved_contributions, + income_before_loss + + losses_brought_forward_deducted + + person("payroll_giving", period) + - relieved_contributions, ) cap = hmrc.income_tax.reliefs.cap loss_cap = np.maximum(cap.amount, cap.rate * adjusted_total) diff --git a/policyengine_uk/variables/gov/dwp/esa_exempt_work_earnings.py b/policyengine_uk/variables/gov/dwp/esa_exempt_work_earnings.py index eeb7ab10a2..a7e2e5a558 100644 --- a/policyengine_uk/variables/gov/dwp/esa_exempt_work_earnings.py +++ b/policyengine_uk/variables/gov/dwp/esa_exempt_work_earnings.py @@ -15,8 +15,9 @@ class esa_exempt_work_earnings(Variable): "occupational and personal pension contributions. The regulation " "takes the tax and contributions actually deducted, which the " "model's inputs do not record. The model approximates them on the " - "pay alone. Income tax: the rates on the pay less employment " - "expenses and employee pension contributions (net pay arrangements), " + "pay alone. Income tax: the rates on the pay less allowable " + "employment deductions (expenses and Payroll Giving donations) and " + "employee pension contributions (net pay arrangements), " "above the personal and blind person's allowances, less the married " "couple's allowance reduction up to that tax. The allowances are the " "person's own, so other income, and anything else that moves adjusted " diff --git a/policyengine_uk/variables/gov/dwp/pension_credit/pension_credit_earnings_income_tax.py b/policyengine_uk/variables/gov/dwp/pension_credit/pension_credit_earnings_income_tax.py index b357b84891..99ec1a1afd 100644 --- a/policyengine_uk/variables/gov/dwp/pension_credit/pension_credit_earnings_income_tax.py +++ b/policyengine_uk/variables/gov/dwp/pension_credit/pension_credit_earnings_income_tax.py @@ -25,7 +25,17 @@ def income_tax_with_inputs_zeroed(simulation, period, variables): def person_variable_with_inputs_zeroed(simulation, period, variables, output): """Each person's ``output`` with every person's value of each of - ``variables`` set to nil, on a branch that is dropped afterwards.""" + ``variables`` set to nil, on a branch that is dropped afterwards. + + Removing all employment sources also removes their Payroll Giving + deduction. Other zeroed inputs leave that deduction in place. + """ + if "employment_income" in variables and "payroll_giving" not in variables: + employment_sources = employed_earnings_sources( + simulation.tax_benefit_system.parameters, period + ) + if all(source in variables for source in employment_sources): + variables = [*variables, "payroll_giving"] name = "pension_credit_without_" + "_and_".join(variables) while name in simulation.branches or name == simulation.branch_name: name += "_" diff --git a/policyengine_uk/variables/gov/dwp/tax_credits_current_year_income.py b/policyengine_uk/variables/gov/dwp/tax_credits_current_year_income.py index 63b8eb4960..5a1fd31383 100644 --- a/policyengine_uk/variables/gov/dwp/tax_credits_current_year_income.py +++ b/policyengine_uk/variables/gov/dwp/tax_credits_current_year_income.py @@ -58,15 +58,17 @@ class tax_credits_current_year_income(Variable): "The claimant's, or joint claimants', income for the tax year " "(TCA 2002 s.7(4); SI 2002/2006 reg 3), before TCA 2002 s.7(2) lifts " "the income test for a claimant on a prescribed benefit. The model " - "takes it as the relevant income (s.7(3)). The income test reads " - "tax_credits_applicable_income, which is nil while the test is " - "lifted; the targeted childcare criteria read this gross figure." + "takes it as the relevant income (s.7(3)). Employment income is net " + "of qualifying Payroll Giving donations (reg. 4(5)). The income test " + "reads tax_credits_applicable_income, which is nil while the test is " + "lifted; the targeted childcare criteria read this current-year income." ) definition_period = YEAR unit = GBP reference = ( "https://www.legislation.gov.uk/ukpga/2002/21/section/7", "https://www.legislation.gov.uk/uksi/2002/2006/regulation/3", + "https://www.legislation.gov.uk/uksi/2002/2006/regulation/4", "https://www.legislation.gov.uk/uksi/2002/2006/regulation/5", "https://www.legislation.gov.uk/uksi/2002/2006/regulation/7", "https://www.legislation.gov.uk/ukpga/2003/1/section/577", @@ -98,7 +100,10 @@ def formula(benunit, period, parameters): bi = parameters(period).gov.contrib.ubi_center.basic_income if bi.interactions.include_in_means_tests: STEP_2_COMPONENTS.append("basic_income") - income += add_for_members(benunit, period, STEP_2_COMPONENTS, members) + # Reg. 4(5) allows the ITEPA s. 713 deduction from employment income. + income += add_for_members( + benunit, period, STEP_2_COMPONENTS, members + ) - add_for_members(benunit, period, ["payroll_giving"], members) # SI 2002/2006 reg 3(1) Step Four: only the claimants' losses # reduce their joint income; a child's loss is not theirs. claimants = person("is_claimant_or_partner", period) diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/income/uc_individual_earned_income_before_mif.py b/policyengine_uk/variables/gov/dwp/universal_credit/income/uc_individual_earned_income_before_mif.py index ed286a1a0b..e2d8b53679 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/income/uc_individual_earned_income_before_mif.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/income/uc_individual_earned_income_before_mif.py @@ -10,7 +10,8 @@ class uc_individual_earned_income_before_mif(Variable): documentation = ( "The person's actual earned income for Universal Credit: their " "earnings, including statutory sick, maternity and paternity pay, " - "less allowable employment expenses, their own relievable pension contributions and their own " + "less allowable employment expenses and Payroll Giving donations, " + "their own relievable pension contributions and their own " "income tax and National Insurance in respect of their employment " "and self-employment. Concurrent trade results include company " "income treated as self-employed earnings under regulation 77; " @@ -28,7 +29,10 @@ class uc_individual_earned_income_before_mif(Variable): href="https://www.legislation.gov.uk/uksi/2013/376/regulation/55", ), dict( - title="Universal Credit Regulations (Northern Ireland) 2016 reg. 55(3)(a)", + title=( + "Universal Credit Regulations (Northern Ireland) 2016 " + "reg. 55(3)(a), (6)(c)" + ), href="https://www.legislation.gov.uk/nisr/2016/216/regulation/55", ), dict( @@ -101,9 +105,11 @@ def formula(person, period, parameters): # Reg. 55(3)(a) disregards expenses allowed under Chapter 2 of # Part 5 ITEPA. This input is the already-allowable amount, after # relevant-employment limits, not a claim for arbitrary raw costs. + # Reg. 55(5)(c) also deducts qualifying Payroll Giving donations. employed = ( add(person, period, earnings_components) - person("employment_expenses", period) + - person("payroll_giving", period) - employment_tax_and_national_insurance ) # Contributions paid after the person reaches 75 are not relievable diff --git a/policyengine_uk/variables/gov/hmrc/income_tax/deductions/employment_deductions.py b/policyengine_uk/variables/gov/hmrc/income_tax/deductions/employment_deductions.py index e45d9bfaaa..4e82511c03 100644 --- a/policyengine_uk/variables/gov/hmrc/income_tax/deductions/employment_deductions.py +++ b/policyengine_uk/variables/gov/hmrc/income_tax/deductions/employment_deductions.py @@ -5,11 +5,23 @@ class employment_deductions(Variable): value_type = float entity = Person label = "Deductions from employment income" + documentation = ( + "Allowable employment expenses under Part 5 of ITEPA and Payroll " + "Giving donations under Part 12. Each input is the legally allowed " + "amount. Part 5 expenses are limited to the earnings remaining " + "after deductions outside that Part (ITEPA s. 329(3))." + ) definition_period = YEAR - reference = dict( - title="Income Tax Act (Earnings and Pensions) Act 2003 s. 327", - href="https://www.legislation.gov.uk/ukpga/2003/1/section/327", + reference = ( + dict( + title="Income Tax (Earnings and Pensions) Act 2003 s. 327(3)-(5)", + href="https://www.legislation.gov.uk/ukpga/2003/1/section/327", + ), + dict( + title="Income Tax (Earnings and Pensions) Act 2003 s. 713", + href="https://www.legislation.gov.uk/ukpga/2003/1/section/713", + ), ) unit = GBP - adds = ["employment_expenses"] + adds = ["employment_expenses", "payroll_giving"] diff --git a/policyengine_uk/variables/gov/hmrc/income_tax/deductions/payroll_giving.py b/policyengine_uk/variables/gov/hmrc/income_tax/deductions/payroll_giving.py new file mode 100644 index 0000000000..a75166728f --- /dev/null +++ b/policyengine_uk/variables/gov/hmrc/income_tax/deductions/payroll_giving.py @@ -0,0 +1,39 @@ +from policyengine_uk.model_api import * + + +class payroll_giving(Variable): + value_type = float + entity = Person + label = "Payroll Giving donations from employment pay" + documentation = ( + "Actual qualifying donations withheld from employment pay, including " + "employer-paid statutory sick, maternity and paternity pay, under an " + "approved Payroll Giving scheme and allowed as a deduction under " + "Part 12 of ITEPA. Supply the non-negative, legally allowed amount " + "for the relevant employment and tax year, not a requested gift or " + "an amount exceeding the pay from which it was withheld. Employment " + "income must be gross of these donations. Household income measures do " + "not subtract the donation as voluntary spending; tax and benefit " + "effects flow through those measures. This input excludes " + "donations withheld from pensions or other social security benefits, " + "or from exempt or non-PAYE income. Do not also include the same " + "donation in Gift Aid " + "or employment expenses. Allowable employment expenses must respect " + "the earnings remaining after Payroll Giving and other deductions " + "outside Part 5 of ITEPA. The model does not determine scheme " + "approval, donation eligibility or per-employment limits from raw " + "requested amounts." + ) + definition_period = YEAR + quantity_type = FLOW + unit = GBP + reference = ( + dict( + title="Income Tax (Earnings and Pensions) Act 2003 s. 713(1)-(5)", + href="https://www.legislation.gov.uk/ukpga/2003/1/section/713", + ), + dict( + title="Income Tax (Earnings and Pensions) Act 2003 s. 329(3)", + href="https://www.legislation.gov.uk/ukpga/2003/1/section/329", + ), + ) diff --git a/policyengine_uk/variables/gov/hmrc/income_tax/reliefs/adjusted_total_income.py b/policyengine_uk/variables/gov/hmrc/income_tax/reliefs/adjusted_total_income.py index 071f89ef76..570f6bd70f 100644 --- a/policyengine_uk/variables/gov/hmrc/income_tax/reliefs/adjusted_total_income.py +++ b/policyengine_uk/variables/gov/hmrc/income_tax/reliefs/adjusted_total_income.py @@ -25,7 +25,8 @@ class adjusted_total_income(Variable): "None is relieved from " "age 75 (s.188(3)(a)). The annual allowance limits tax-relieved " "saving through a charge, not the relief itself, so it is not applied " - "here. Step 2 adds back payroll giving, which the model does not have." + "here. Step 2 adds back qualifying Payroll Giving donations, already " + "deducted in calculating taxable employment income." ) definition_period = YEAR unit = GBP @@ -66,4 +67,9 @@ def formula(person, period, parameters): not_yet_deducted = relieved_contributions - person( "net_pay_pension_relief", period ) - return max_(0, total_income - not_yet_deducted) + # Step 2 restores the allowed Part 12 deduction, including where + # net taxable employment income is nil (ITEPA ss. 11(2), 329(3)). + return max_( + 0, + total_income + person("payroll_giving", period) - not_yet_deducted, + )