diff --git a/changelog.d/2918.fixed.md b/changelog.d/2918.fixed.md new file mode 100644 index 0000000000..2aaeeb13a5 --- /dev/null +++ b/changelog.d/2918.fixed.md @@ -0,0 +1 @@ +End Working Tax Credit on an ordinary Universal Credit claim, retaining the pension-age exception, and apply the same claim screen to the qualifying-young-person test. diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/tax_credits.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/tax_credits.yaml index 7844573bf8..b44424cc5f 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/tax_credits.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/tax_credits.yaml @@ -36,6 +36,8 @@ period: 2020 absolute_error_margin: 0 input: + would_claim_uc: false + would_claim_uc_at_legacy_closure: false age: 35 weekly_hours: 40 working_tax_credit_reported: true @@ -58,6 +60,8 @@ period: 2020 absolute_error_margin: 0 input: + would_claim_uc: false + would_claim_uc_at_legacy_closure: false age: 60 weekly_hours: 16 working_tax_credit_reported: true diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/tax_credits_claimants_and_children.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/tax_credits_claimants_and_children.yaml index 10276fc8da..45c623414d 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/tax_credits_claimants_and_children.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/tax_credits_claimants_and_children.yaml @@ -52,6 +52,8 @@ current_education: UPPER_SECONDARY benunits: benunit: + would_claim_uc: false + would_claim_uc_at_legacy_closure: false members: [parent_1, parent_2, student] output: is_WTC_eligible: true @@ -74,6 +76,8 @@ current_education: UPPER_SECONDARY benunits: benunit: + would_claim_uc: false + would_claim_uc_at_legacy_closure: false members: [parent, student] output: is_WTC_eligible: true @@ -118,6 +122,8 @@ weekly_hours: 16 benunits: benunit: + would_claim_uc: false + would_claim_uc_at_legacy_closure: false members: [parent_1, parent_2, student] output: is_WTC_eligible: true @@ -136,6 +142,8 @@ is_severely_disabled_for_benefits: true benunits: benunit: + would_claim_uc: false + would_claim_uc_at_legacy_closure: false members: [worker] output: WTC_severely_disabled_element: 1_390 @@ -161,6 +169,8 @@ age: 10 benunits: benunit: + would_claim_uc: false + would_claim_uc_at_legacy_closure: false members: [parent, teenager, child] output: is_child_for_working_tax_credit_childcare_element: [false, false, true] diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/tax_credits_post_migration.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/tax_credits_post_migration.yaml index 7865994c65..28cca70103 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/tax_credits_post_migration.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/tax_credits_post_migration.yaml @@ -2,6 +2,8 @@ period: 2024 absolute_error_margin: 1 input: + would_claim_uc: false + would_claim_uc_at_legacy_closure: false age: 35 weekly_hours: 40 employment_income: 10000 diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/tax_credits_working_hours.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/tax_credits_working_hours.yaml index ebdf03cf6a..7dee594ebc 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/tax_credits_working_hours.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/tax_credits_working_hours.yaml @@ -52,6 +52,8 @@ is_claimant_or_partner: true benunits: family: + would_claim_uc: false + would_claim_uc_at_legacy_closure: false members: - adult_0 - adult_1 @@ -105,6 +107,8 @@ is_disabled_for_benefits: false benunits: family: + would_claim_uc: false + would_claim_uc_at_legacy_closure: false members: - adult_0 - adult_1 @@ -183,6 +187,8 @@ is_disabled_for_benefits: false benunits: family: + would_claim_uc: false + would_claim_uc_at_legacy_closure: false members: - adult_0 - adult_1 @@ -239,6 +245,8 @@ employment_income: 0 benunits: family: + would_claim_uc: false + would_claim_uc_at_legacy_closure: false members: - adult_0 - adult_1 @@ -332,6 +340,8 @@ employment_income: 0 benunits: family: + would_claim_uc: false + would_claim_uc_at_legacy_closure: false members: - adult_0 - adult_1 @@ -436,6 +446,8 @@ is_parent: false benunits: family: + would_claim_uc: false + would_claim_uc_at_legacy_closure: false members: - worker output: @@ -456,6 +468,8 @@ age: 10 benunits: family: + would_claim_uc: false + would_claim_uc_at_legacy_closure: false members: - worker - child_0 diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_existing_benefits.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_existing_benefits.yaml index 8966b13925..ec020e6227 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_existing_benefits.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_existing_benefits.yaml @@ -377,6 +377,8 @@ is_claimant_or_partner: true benunits: benunit: + would_claim_uc: false + would_claim_uc_at_legacy_closure: false members: [claimant, partner] output: is_qualifying_young_person_for_universal_credit: [false, false] diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_universal_credit_claim.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_universal_credit_claim.yaml index f348fa21c5..eb5abbabba 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_universal_credit_claim.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_universal_credit_claim.yaml @@ -9,8 +9,8 @@ # award the claim has ended, so for a claimant or partner the UC qualifying # young person test (SI 2014/1230 reg. 28) follows those three limbs. For a # dependant it doesn't: a parent's claim leaves the dependant's own award. -# The model ends no Working Tax Credit, Income Support or income-based JSA -# award on the claim, so the predicate follows no claim limb for them. +# A claim also ends the claimant or partner Working Tax Credit award; +# Income Support and income-based JSA remain outside that claim limb. # # would_claim_uc decides the claim here. A case without a claim also sets # would_claim_uc_at_legacy_closure false, so the family claims nothing when @@ -283,15 +283,10 @@ is_qualifying_young_person_for_universal_credit: [false, false, false] universal_credit: 0 -- name: An 18-year-old lone parent's own Working Tax Credit report excludes them though they claim Universal Credit. - # Tax credits pay in 2024. The model ends Working Tax Credit when the - # family's legacy awards close, but not on its Universal Credit claim - # (is_WTC_eligible reads legacy_benefits_closed, not - # claims_universal_credit). The claimant works 16 hours a week and looks - # after a child, so they meet the model's lone parent hours test (16 hours - # from age 16), and the model keeps their award beside the claim. The - # predicate follows no claim limb for Working Tax Credit, so the - # claimant's own report still excludes them. +- name: An 18-year-old lone parent's own Working Tax Credit report leaves them qualifying once they claim Universal Credit. + # SI 2014/1230 reg 8(2) ends their WTC before the actual or hypothetical + # UC start, so regulation 28 no longer excludes the 18-year-old. Their + # one-year-old child remains outside regulation 5's age definition. period: 2024 input: people: @@ -315,9 +310,10 @@ tenure_type: OWNED_OUTRIGHT output: claims_universal_credit: true - is_WTC_eligible: true + is_WTC_eligible: false + working_tax_credit: 0 is_qualifying_young_person_under_universal_credit_regulation_5: [true, false] - is_qualifying_young_person_for_universal_credit: [false, false] + is_qualifying_young_person_for_universal_credit: [true, false] - name: An 18-year-old partner's own Housing Benefit report excludes them while their mixed-age couple keeps the Pension Credit route. # A claimant aged 75 who reports Pension Credit and an 18-year-old partner diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/working_tax_credit_uc_claim_termination.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/working_tax_credit_uc_claim_termination.yaml new file mode 100644 index 0000000000..3332062463 --- /dev/null +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/working_tax_credit_uc_claim_termination.yaml @@ -0,0 +1,909 @@ +# SI 2014/1230 reg 8(2)(a)-(b): an ordinary genuine UC claim ends +# claimant/joint-claimant tax credits even if UC pays zero. Current 8(2B) +# saves a single pension-age claimant or BOTH joint claimants, not a mixed +# age couple merely keeping a protected Pension Credit route. +# https://www.legislation.gov.uk/uksi/2014/1230/regulation/8 +# https://www.legislation.gov.uk/nisr/2016/226/regulation/6 +# claims_universal_credit is the existing annual claim proxy; these cases +# do not assert made/deemed/withdrawn claim dates or fractional-year awards. +# The 2015 England ordinary-claim case is after 16 June 2014. The 2011/2012 +# direct predicate controls do not represent actual UC claims. The 2013 +# full-WTC control has no claim. Modern NI uses 2024. +# Amount controls: 2024 basic 2,435 + 30-hour element 1,015 = 3,450; +# 2013 basic 1,920 + 30-hour element 790 = 2,710, with earnings 5,000 +# below the taper threshold. See the cited Schedule 2 in the unchanged +# elements/basic.yaml and worker.yaml parameters; no model-derived oracle. + +- name: Case 1, an ordinary UC claim ends a working age claimant WTC award. + period: 2024 + input: + people: + person1: + age: 35 + weekly_hours: 30 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + benunits: + benunit: + members: + - person1 + would_claim_uc: true + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + claims_universal_credit: true + is_WTC_eligible: false + working_tax_credit: 0 + working_tax_credit_reported: + - 1000 +- name: Case 2, a UC claim ends WTC even when capital makes the UC payment zero. + period: 2024 + input: + people: + person1: + age: 35 + weekly_hours: 30 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + benunits: + benunit: + members: + - person1 + would_claim_uc: true + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + uc_reported_capital: 20000 + households: + household: + members: + - person1 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + claims_universal_credit: true + uc_assessable_capital: 20000 + is_uc_eligible: false + universal_credit: 0 + is_WTC_eligible: false + working_tax_credit: 0 + absolute_error_margin: 0.01 +- name: Case 3, without a UC claim the qualifying worker keeps WTC. + period: 2024 + input: + people: + person1: + age: 35 + weekly_hours: 30 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + benunits: + benunit: + members: + - person1 + would_claim_uc: false + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + claims_universal_credit: false + is_WTC_eligible: true + working_tax_credit: 3450 + absolute_error_margin: 0.01 +- name: Case 4, a UC receipt report alone is not a claim termination trigger. + period: 2024 + input: + people: + person1: + age: 35 + weekly_hours: 30 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + universal_credit_reported: 1000 + benunits: + benunit: + members: + - person1 + would_claim_uc: false + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + claims_universal_credit: false + universal_credit_reported: + - 1000 + is_WTC_eligible: true + working_tax_credit: 3450 + absolute_error_margin: 0.01 +- name: Case 5, a joint UC claim ends WTC reported by the working first partner. + period: 2024 + input: + people: + person1: + age: 40 + weekly_hours: 30 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + person2: + age: 35 + weekly_hours: 0 + employment_income: 0 + working_tax_credit_reported: 0 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + benunits: + benunit: + members: + - person1 + - person2 + would_claim_uc: true + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + - person2 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + claims_universal_credit: true + is_WTC_eligible: false + working_tax_credit: 0 + working_tax_credit_reported: + - 1000 + - 0 +- name: Case 6, a joint UC claim also ends WTC reported by the second partner. + period: 2024 + input: + people: + person1: + age: 35 + weekly_hours: 0 + employment_income: 0 + working_tax_credit_reported: 0 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + person2: + age: 40 + weekly_hours: 30 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + benunits: + benunit: + members: + - person1 + - person2 + would_claim_uc: true + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + - person2 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + claims_universal_credit: true + is_WTC_eligible: false + working_tax_credit: 0 + working_tax_credit_reported: + - 0 + - 1000 +- name: Case 7, a single claimant at Pension Credit age keeps the regulation 8 saving. + period: 2024 + input: + people: + person1: + age: 70 + weekly_hours: 16 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + benunits: + benunit: + members: + - person1 + would_claim_uc: true + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + has_attained_state_pension_credit_qualifying_age: + - true + claims_universal_credit: true + is_WTC_eligible: true +- name: Case 8, both pension age joint claimants keep the saving despite a young dependant. + period: 2024 + input: + people: + person1: + age: 70 + weekly_hours: 16 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + person2: + age: 68 + weekly_hours: 0 + employment_income: 0 + working_tax_credit_reported: 0 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + person3: + age: 10 + weekly_hours: 0 + employment_income: 0 + working_tax_credit_reported: 0 + is_claimant_or_partner: false + is_parent: false + is_disabled_for_benefits: false + benunits: + benunit: + members: + - person1 + - person2 + - person3 + would_claim_uc: true + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + - person2 + - person3 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + has_attained_state_pension_credit_qualifying_age: + - true + - true + - false + claims_universal_credit: true + is_WTC_eligible: true +- name: Case 9, one pension age member does not save a mixed age couple WTC award. + period: 2024 + input: + people: + person1: + age: 70 + weekly_hours: 16 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + person2: + age: 40 + weekly_hours: 0 + employment_income: 0 + working_tax_credit_reported: 0 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + benunits: + benunit: + members: + - person1 + - person2 + would_claim_uc: true + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + - person2 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + has_attained_state_pension_credit_qualifying_age: + - true + - false + claims_universal_credit: true + is_WTC_eligible: false + working_tax_credit: 0 +- name: Case 10, the mixed age Pension Credit route does not supply the all claimant age saving. + period: 2024 + input: + people: + person1: + age: 70 + weekly_hours: 16 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + person2: + age: 40 + weekly_hours: 0 + employment_income: 0 + working_tax_credit_reported: 0 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + benunits: + benunit: + members: + - person1 + - person2 + would_claim_uc: true + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + has_mixed_age_couple_pension_credit_saving: true + households: + household: + members: + - person1 + - person2 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + meets_pension_credit_age_conditions: true + has_attained_state_pension_credit_qualifying_age: + - true + - false + claims_universal_credit: true + is_WTC_eligible: false + working_tax_credit: 0 +- name: Case 11, a family claim leaves a nonclaimant young person own reported WTC exclusion. + period: 2024 + input: + people: + person1: + age: 40 + weekly_hours: 30 + employment_income: 5000 + working_tax_credit_reported: 0 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + person2: + age: 18 + weekly_hours: 0 + employment_income: 0 + working_tax_credit_reported: 1000 + is_claimant_or_partner: false + is_parent: false + is_disabled_for_benefits: false + current_education: POST_SECONDARY + benunits: + benunit: + members: + - person1 + - person2 + would_claim_uc: true + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + - person2 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + is_qualifying_young_person_under_universal_credit_regulation_5: + - false + - true + is_qualifying_young_person_for_universal_credit: + - false + - false +- name: Case 12, a genuine ordinary England claim in 2015 ends WTC. + period: 2015 + input: + people: + person1: + age: 35 + weekly_hours: 30 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + benunits: + benunit: + members: + - person1 + would_claim_uc: true + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + claims_universal_credit: true + is_WTC_eligible: false + working_tax_credit: 0 +# would_claim_uc is only the model annual intent flag here, not an actual +# historical UC claim. Direct predicate output avoids the pre-existing +# full-WTC missing min_hours.couple_with_children parameter at this date. +- name: Case 13, the 2011 model has no UC claim termination predicate. + period: 2011 + input: + people: + person1: + age: 35 + weekly_hours: 30 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + benunits: + benunit: + members: + - person1 + would_claim_uc: true + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + would_claim_uc: true + wtc_terminated_by_universal_credit_claim: false +# would_claim_uc is only the model annual intent flag here, not an actual +# historical UC claim. Direct predicate output avoids the pre-existing +# full-WTC missing min_hours.couple_with_children parameter at this date. +- name: Case 14, the 2012 model has no UC claim termination predicate. + period: 2012 + input: + people: + person1: + age: 35 + weekly_hours: 30 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + benunits: + benunit: + members: + - person1 + would_claim_uc: true + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + would_claim_uc: true + wtc_terminated_by_universal_credit_claim: false +- name: Case 15, a modern Northern Ireland UC claim ends WTC. + period: 2024 + input: + people: + person1: + age: 35 + weekly_hours: 30 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + benunits: + benunit: + members: + - person1 + would_claim_uc: true + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + region: NORTHERN_IRELAND + tenure_type: OWNED_OUTRIGHT + output: + claims_universal_credit: true + is_WTC_eligible: false + working_tax_credit: 0 +- name: Case 16, closing legacy awards still ends WTC without an ordinary UC claim. + period: 2024 + input: + people: + person1: + age: 35 + weekly_hours: 30 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + benunits: + benunit: + members: + - person1 + would_claim_uc: false + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: true + would_claim_WTC: true + households: + household: + members: + - person1 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + is_WTC_eligible: false + working_tax_credit: 0 +- name: Case 17, tax credit abolition does not revive WTC when no UC claim is made. + period: 2026 + input: + people: + person1: + age: 35 + weekly_hours: 30 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + benunits: + benunit: + members: + - person1 + would_claim_uc: false + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + working_tax_credit: 0 +- name: Case 18, a modern Northern Ireland pension age claimant keeps the age saving. + period: 2024 + input: + people: + person1: + age: 70 + weekly_hours: 16 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + benunits: + benunit: + members: + - person1 + would_claim_uc: true + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + region: NORTHERN_IRELAND + tenure_type: OWNED_OUTRIGHT + output: + has_attained_state_pension_credit_qualifying_age: + - true + claims_universal_credit: true + is_WTC_eligible: true +- name: Case 19, a 2013 worker without a UC claim retains the historical WTC award. + period: 2013 + input: + people: + person1: + age: 35 + weekly_hours: 30 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + benunits: + benunit: + members: + - person1 + would_claim_uc: false + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + wtc_terminated_by_universal_credit_claim: false + is_WTC_eligible: true + absolute_error_margin: 0.01 + +# UC Regulations 2013 reg 3(3)(a) permits an actual single claim where the +# partner is 17 and outside the reduced minimum-age exceptions. A valid +# Scottish married couple remains a tax-credit couple, but only the older +# member is a UC claimant. TP Regulations 2014 reg 8(2B) saves that pension- +# age single claimant after July 2022; no exact continuing payment is asserted. +# https://www.legislation.gov.uk/uksi/2013/376/regulation/3 +# https://www.legislation.gov.uk/uksi/2014/1230/regulation/8 +- name: Case 20, a pension age UC single claimant is saved with an excluded young spouse in the first role. + period: 2024 + input: + people: + person1: + age: 70 + weekly_hours: 16 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + care_hours: 0 + carers_allowance_reported: 0 + person2: + age: 17 + weekly_hours: 0 + employment_income: 0 + working_tax_credit_reported: 0 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + care_hours: 0 + carers_allowance_reported: 0 + benunits: + benunit: + members: + - person1 + - person2 + relation_type: COUPLE + is_married: true + would_claim_uc: true + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + - person2 + region: SCOTLAND + tenure_type: OWNED_OUTRIGHT + output: + is_couple: true + claims_universal_credit: true + has_attained_state_pension_credit_qualifying_age: + - true + - false + uc_limited_capability_for_work: + - false + - false + is_carer_for_benefits: + - false + - false + meets_uc_minimum_age_condition: + - true + - false + uc_is_ineligible_partner: + - false + - true + is_uc_single_or_joint_claimant: + - true + - false + wtc_terminated_by_universal_credit_claim: false + is_WTC_eligible: true +- name: Case 21, a pension age UC single claimant is saved with an excluded young spouse in the second role. + period: 2024 + input: + people: + person1: + age: 17 + weekly_hours: 0 + employment_income: 0 + working_tax_credit_reported: 0 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + care_hours: 0 + carers_allowance_reported: 0 + person2: + age: 70 + weekly_hours: 16 + employment_income: 5000 + working_tax_credit_reported: 1000 + is_claimant_or_partner: true + is_parent: false + is_disabled_for_benefits: false + care_hours: 0 + carers_allowance_reported: 0 + benunits: + benunit: + members: + - person1 + - person2 + relation_type: COUPLE + is_married: true + would_claim_uc: true + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + - person2 + region: SCOTLAND + tenure_type: OWNED_OUTRIGHT + output: + is_WTC_eligible: true + wtc_terminated_by_universal_credit_claim: false + is_couple: true + claims_universal_credit: true + has_attained_state_pension_credit_qualifying_age: + - false + - true + uc_limited_capability_for_work: + - false + - false + is_carer_for_benefits: + - false + - false + meets_uc_minimum_age_condition: + - false + - true + uc_is_ineligible_partner: + - true + - false + is_uc_single_or_joint_claimant: + - false + - true + +# Reg 8(2B) saves a pension-age single claimant. Omitted claimant inputs derive +# from the ordinary adult's benefit-unit structure, as in the source fallback. +- name: Case 22, omitted claimant inputs derive the pension-age single claimant saving. + period: 2024 + input: + people: + person1: + age: 70 + weekly_hours: 16 + employment_income: 5_000 + working_tax_credit_reported: 1_000 + is_parent: false + is_disabled_for_benefits: false + benunits: + benunit: + members: + - person1 + would_claim_uc: true + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + is_claimant_or_partner: + - true + is_uc_single_or_joint_claimant: + - true + has_attained_state_pension_credit_qualifying_age: + - true + claims_universal_credit: true + wtc_terminated_by_universal_credit_claim: false + is_WTC_eligible: true + +# The same family supplies a contradictory false UC claimant flag while the +# annual claim proxy remains true. This tests supplied-input precedence and +# the conservative nonempty-set guard, not a legal absence of a claimant. +- name: Case 23, an explicit empty UC claimant set does not establish the age saving. + period: 2024 + input: + people: + person1: + age: 70 + weekly_hours: 16 + employment_income: 5_000 + working_tax_credit_reported: 1_000 + is_parent: false + is_disabled_for_benefits: false + is_uc_single_or_joint_claimant: false + benunits: + benunit: + members: + - person1 + would_claim_uc: true + would_claim_uc_at_legacy_closure: false + legacy_benefits_closed: false + would_claim_WTC: true + households: + household: + members: + - person1 + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + is_claimant_or_partner: + - true + is_uc_single_or_joint_claimant: + - false + has_attained_state_pension_credit_qualifying_age: + - true + claims_universal_credit: true + wtc_terminated_by_universal_credit_claim: true + is_WTC_eligible: false + working_tax_credit: 0 diff --git a/policyengine_uk/tests/policy/baseline/gov/dfe/childcare_grant/childcare_grant.yaml b/policyengine_uk/tests/policy/baseline/gov/dfe/childcare_grant/childcare_grant.yaml index 119afe6968..be255bf54d 100644 --- a/policyengine_uk/tests/policy/baseline/gov/dfe/childcare_grant/childcare_grant.yaml +++ b/policyengine_uk/tests/policy/baseline/gov/dfe/childcare_grant/childcare_grant.yaml @@ -335,6 +335,8 @@ childcare_expenses: 6_000 benunits: benunit: + would_claim_uc: false + would_claim_uc_at_legacy_closure: false members: ["student", "child"] # Tax credits closed in 2025; keep the award to test the overlap. legacy_benefits_closed: false diff --git a/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml b/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml index bb32327918..62ce4580af 100644 --- a/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml +++ b/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml @@ -869,10 +869,11 @@ is_uc_eligible: false universal_credit: 0 -- name: Case 33, a couple of 18-year-olds on a joint Working Tax Credit award both leave the qualifying young person route. - # Tax Credits Act 2002 s. 3(3)(a): a couple claims jointly, so the award - # belongs to both members, and SI 2014/1230 reg. 28 applies to each, - # whichever member reports it. +- name: Case 33, a couple of 18-year-olds on a joint Working Tax Credit award both keep the qualifying young person route after claiming UC. + # A couple owns the WTC award jointly (TCA 2002 s3(3)). Its ordinary + # UC claim ends that award before UC starts (SI 2014/1230 reg8(2)), so + # neither adult is excluded by reg28. Both meet the reg5 young-person + # definition and full-time study therefore counts under UC reg12(1A). period: 2024 input: people: @@ -888,14 +889,15 @@ benunits: benunit: members: [person1, person2] + would_claim_uc: true households: household: members: [person1, person2] region: NORTH_EAST output: - is_qualifying_young_person_for_universal_credit: [false, false] - is_qualifying_young_person_for_uc_education: [false, false] - uc_receiving_education: [false, false] + is_qualifying_young_person_for_universal_credit: [true, true] + is_qualifying_young_person_for_uc_education: [true, true] + uc_receiving_education: [true, true] - name: Case 34, the 18-year-old of case 32 claims when DWP moves them off legacy benefits and keeps the award. # The claimant reports Housing Benefit, so under SI 2014/1230 reg. 28 they diff --git a/policyengine_uk/tests/test_working_tax_credit_eligibility_properties.py b/policyengine_uk/tests/test_working_tax_credit_eligibility_properties.py index 45c54a012a..a968213d53 100644 --- a/policyengine_uk/tests/test_working_tax_credit_eligibility_properties.py +++ b/policyengine_uk/tests/test_working_tax_credit_eligibility_properties.py @@ -25,7 +25,12 @@ def situation(families, reverse=False): names.append(name) if reverse: names.reverse() - benunits[f"family_{i}"] = {"members": names} + # These WTC-only controls assume no ordinary or legacy-closure UC claim. + benunits[f"family_{i}"] = { + "members": names, + "would_claim_uc": {YEAR: False}, + "would_claim_uc_at_legacy_closure": {YEAR: False}, + } households[f"household_{i}"] = {"members": names} if reverse: people = dict(reversed(list(people.items()))) diff --git a/policyengine_uk/variables/gov/dwp/is_WTC_eligible.py b/policyengine_uk/variables/gov/dwp/is_WTC_eligible.py index 9e18d4d049..20b2b1376f 100644 --- a/policyengine_uk/variables/gov/dwp/is_WTC_eligible.py +++ b/policyengine_uk/variables/gov/dwp/is_WTC_eligible.py @@ -44,8 +44,10 @@ def formula(benunit, period, parameters): # A family DWP moved off its legacy benefits keeps no tax credits, # even under a reform that restores them (SI 2014/1230 regs 8, 46). already_claiming = ( - add(benunit, period, ["working_tax_credit_reported"]) > 0 - ) & ~benunit("legacy_benefits_closed", period) + (add(benunit, period, ["working_tax_credit_reported"]) > 0) + & ~benunit("legacy_benefits_closed", period) + & ~benunit("wtc_terminated_by_universal_credit_claim", period) + ) return ( (lower_req & meets_lower) | (medium_req & meets_medium) @@ -89,8 +91,10 @@ def formula_2012_04_06(benunit, period, parameters): ) parents = joint_parents & (meets_joint_hours | partner_exception_proxy) already_claiming = ( - add(benunit, period, ["working_tax_credit_reported"]) > 0 - ) & ~benunit("legacy_benefits_closed", period) + (add(benunit, period, ["working_tax_credit_reported"]) > 0) + & ~benunit("legacy_benefits_closed", period) + & ~benunit("wtc_terminated_by_universal_credit_claim", period) + ) return ( disabled_worker | older_worker | ordinary_worker | lone_parent | parents ) & already_claiming diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/child_element/is_qualifying_young_person_for_universal_credit.py b/policyengine_uk/variables/gov/dwp/universal_credit/child_element/is_qualifying_young_person_for_universal_credit.py index c273af655a..87636c4888 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/child_element/is_qualifying_young_person_for_universal_credit.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/child_element/is_qualifying_young_person_for_universal_credit.py @@ -34,8 +34,9 @@ class is_qualifying_young_person_for_universal_credit(Variable): "that switch turns on pays them at their reported amounts in the " "dataset year and the nine years after it, and the formula still reads " "them in later years. In those years the reform also pays a claimant's " - "or partner's own income-related ESA, Housing Benefit and Child Tax " - "Credit report whether or not the family claims Universal Credit, so " + "or partner's own income-related ESA, Housing Benefit, Child Tax " + "Credit and Working Tax Credit reports whether or not the family " + "claims Universal Credit, so " "while the switch is on the formula leaves out the Universal Credit " "claim limbs below. It leaves them out in later years too, when the " "model again ends those awards on the family's claim. The model also ends" @@ -52,11 +53,13 @@ class is_qualifying_young_person_for_universal_credit(Variable): "(housing_benefit_eligible) and its Child Tax Credit (is_CTC_eligible)," " and the claimant's and partner's income-related ESA " "(esa_income_report_closed), when the family claims " - "(claims_universal_credit). For a claimant or partner, the formula " - "follows those limbs too. The family's claim doesn't end a dependant's " - "own award, so for a dependant the formula doesn't. The model ends no " - "Working Tax Credit, Income Support or income-based JSA award on the " - "claim, so the formula follows no claim limb for them. It can't read " + "(claims_universal_credit). Working Tax Credit follows " + "wtc_terminated_by_universal_credit_claim, including its all-claimants " + "Pension Credit qualifying-age exception. For a claimant or partner, " + "the formula follows those limbs too. The family's claim doesn't end " + "a dependant's own award, so for a dependant the formula doesn't. The " + "model ends no Income Support or income-based JSA award on the claim, " + "so the formula follows no claim limb for them. It can't read " "housing_benefit_eligible: that variable's Pension Credit route reads " "left_pension_route_at_legacy_closure, which reads this variable " "through is_uc_entitled and the child element. So the formula keeps a " @@ -111,9 +114,10 @@ def qualifying_young_person(person, period, parameters, at_claim_start=False): (reg. 8(2A); esa_income_report_closed's run-on), so the formula leaves out those two claim limbs. The claim has already ended a tax credit award (reg. 8(2)(a)), so the formula keeps the Child Tax Credit limb. - Reg. 8(2) ends a Working Tax Credit award too, but is_WTC_eligible keeps - that award beside a Universal Credit claim, so the Working Tax Credit - limb follows the model (policyengine-uk#2918). In Northern Ireland the + The Working Tax Credit limb uses the shared claim-termination rule at + claim start too: the pension-age saving applies to the actual single + Universal Credit claimant or both joint claimants. The paid-as-reported + reform keeps the reported award outside this claim screen. In Northern Ireland the claim has also already ended a rate rebate (SR 2016/226 reg. 6(2)), and only a rent rebate or allowance runs on (reg. 6(2A)), so there the formula keeps the Housing Benefit limb for a report of a rate rebate @@ -225,12 +229,15 @@ def paying(active, *names): & family_award_open & ~claim_ends_own_award ) - # Reg. 8(2) also ends a Working Tax Credit award on a Universal Credit - # claim, but is_WTC_eligible keeps paying it (policyengine-uk#2918), so - # this limb has no claim term and follows the model. + wtc_claim_ends_own_award = ( + claimant_or_partner + & person.benunit("wtc_terminated_by_universal_credit_claim", period) + & (not paid_as_reported) + ) working_tax_credit_paying = ( paying(dwp.tax_credits.active, "working_tax_credit", "tax_credits") & family_award_open + & ~wtc_claim_ends_own_award ) tax_credits_reported = child_tax_credit_paying * person( "child_tax_credit_reported", period diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/claims_universal_credit.py b/policyengine_uk/variables/gov/dwp/universal_credit/claims_universal_credit.py index 6e40134ddf..1ad3e1421d 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/claims_universal_credit.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/claims_universal_credit.py @@ -9,7 +9,10 @@ class claims_universal_credit(Variable): "Whether this family claims Universal Credit: it would claim it " "anyway (would_claim_uc), or it claims when DWP moves it off its " "legacy benefits or the abolition of income-related ESA reaches its " - "award (claims_uc_at_legacy_closure). Universal Credit is " + "award (claims_uc_at_legacy_closure). Working Tax Credit follows " + "wtc_terminated_by_universal_credit_claim, retaining an award where " + "all its claimants have attained the Pension Credit qualifying age. " + "Universal Credit is " "paid only to claiming families. A claim ends the family's Housing " "Benefit continuing award and Child Tax Credit, and the claimant's " "and partner's income-related ESA (esa_income_report_closed). Once " @@ -19,7 +22,7 @@ class claims_universal_credit(Variable): "8(3) and 46(2); housing_benefit_eligible), and Universal Credit " "then leaves that rent out (uc_housing_costs_element). For other " "claimants the model doesn't represent the overlap of Universal " - "Credit with Working Tax Credit, Income Support and income-based " + "Credit with Income Support and income-based " "JSA." ) definition_period = YEAR diff --git a/policyengine_uk/variables/gov/dwp/wtc_terminated_by_universal_credit_claim.py b/policyengine_uk/variables/gov/dwp/wtc_terminated_by_universal_credit_claim.py new file mode 100644 index 0000000000..0be3af01a8 --- /dev/null +++ b/policyengine_uk/variables/gov/dwp/wtc_terminated_by_universal_credit_claim.py @@ -0,0 +1,65 @@ +from policyengine_uk.model_api import * + + +def _ordinary_claim_ends_wtc(benunit, period): + person = benunit.members + claimant = person("is_uc_single_or_joint_claimant", period) + at_qualifying_age = person( + "has_attained_state_pension_credit_qualifying_age", period + ) + # The claim proxy can be true while supplied roles identify no claimant. + # An empty set cannot establish the pension-age saving through all(). + all_claimants_at_qualifying_age = (benunit.sum(claimant) > 0) & benunit.all( + ~claimant | at_qualifying_age + ) + return benunit("claims_universal_credit", period) & ~all_claimants_at_qualifying_age + + +class wtc_terminated_by_universal_credit_claim(Variable): + value_type = bool + entity = BenUnit + definition_period = YEAR + default_value = False + label = "Working Tax Credit award ends on a Universal Credit claim" + documentation = ( + "Whether an ordinary Universal Credit claim ends the claimant's or " + "joint claimants' Working Tax Credit award, even if no Universal Credit " + "is payable. The existing annual claim proxy must represent a genuine " + "claim within the applicable rollout. It does not record claim dates, " + "deemed or withdrawn claims, or every historical basic condition. " + "An award remains where the actual single Universal Credit claimant, " + "or both joint Universal Credit claimants, have attained the qualifying " + "age for State Pension Credit. Claimant roles derive from benefit-unit " + "structure when not supplied. Supplied role and claimant flags take " + "precedence. A true claim proxy with no identified claimant does not " + "establish this saving; ordinary claim termination still applies. " + "A tax-credit partner who cannot join " + "the Universal Credit claim is not included in this age test " + "(Universal Credit Regulations 2013 reg 3(3)). Before " + "25 July 2022 an ordinary claim first had to satisfy the basic " + "conditions; from that date SI 2014/1230 reg 8(2B) expressly excludes " + "these claimants. A protected mixed-age Pension Credit route alone " + "does not exclude a claim. The Great Britain rule starts on 16 June " + "2014; Northern Ireland's first staged operation starts on " + "27 September 2017. YEAR formulas select at the period start, so a " + "January-start transitional year retains the earlier rule. This is " + "not a claim-date or postcode-level rollout model." + ) + reference = ( + "https://www.legislation.gov.uk/uksi/2014/1230/regulation/1/made", + "https://www.legislation.gov.uk/uksi/2014/1230/regulation/8", + "https://www.legislation.gov.uk/uksi/2013/376/regulation/3", + "https://www.legislation.gov.uk/uksi/2022/752/regulation/5/made", + "https://www.legislation.gov.uk/nisr/2016/226/regulation/6", + "https://www.legislation.gov.uk/nisr/2017/190/article/4/made", + ) + + def formula_2014_06_16(benunit, period, parameters): + country = benunit.members.household("country", period) + in_northern_ireland = benunit.any( + country == country.possible_values.NORTHERN_IRELAND + ) + return _ordinary_claim_ends_wtc(benunit, period) & ~in_northern_ireland + + def formula_2017_09_27(benunit, period, parameters): + return _ordinary_claim_ends_wtc(benunit, period)