From 78ac09f25c80a9b5d2dfa0e95ba4aeac85695eb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Juaristi?= <127882282+juaristi22@users.noreply.github.com> Date: Tue, 24 Nov 2026 23:34:56 +0000 Subject: [PATCH 1/2] Respect the Housing Benefit WPA disregard in the benefit cap --- changelog.d/2812.fixed.md | 1 + ...benefit_cap_widowed_parents_allowance.yaml | 267 ++++++++++++++++++ .../gov/dwp/benefit_cap_welfare_benefits.py | 27 +- .../uc_benefit_cap_welfare_benefits.py | 16 +- 4 files changed, 302 insertions(+), 9 deletions(-) create mode 100644 changelog.d/2812.fixed.md create mode 100644 policyengine_uk/tests/policy/baseline/gov/dwp/benefit_cap/benefit_cap_widowed_parents_allowance.yaml diff --git a/changelog.d/2812.fixed.md b/changelog.d/2812.fixed.md new file mode 100644 index 0000000000..fd11e507b7 --- /dev/null +++ b/changelog.d/2812.fixed.md @@ -0,0 +1 @@ +Count Widowed Parent's Allowance after its income disregard in the Housing Benefit cap while retaining its gross amount for Universal Credit. diff --git a/policyengine_uk/tests/policy/baseline/gov/dwp/benefit_cap/benefit_cap_widowed_parents_allowance.yaml b/policyengine_uk/tests/policy/baseline/gov/dwp/benefit_cap/benefit_cap_widowed_parents_allowance.yaml new file mode 100644 index 0000000000..63063ee275 --- /dev/null +++ b/policyengine_uk/tests/policy/baseline/gov/dwp/benefit_cap/benefit_cap_widowed_parents_allowance.yaml @@ -0,0 +1,267 @@ +# HB Regs 2006 regs 75C(4), 40(2), Sch 5 para 16(b): councils count +# Widowed Parent's Allowance after the £15 weekly disregard. Each claimant +# or couple below has one recipient, no other Sch 5 para 34 disregards, and no tax +# payable on the allowance. The £20 combined weekly ceiling cannot bind. +# Awards before the cap are inputs; these cases test the basket and cap, +# rather than eligibility for or the means test of those awards. In particular, +# supplied WPA receipts do not certify the recipients' underlying entitlement. + +- name: Case 1, Housing Benefit counts the original family's allowance after the disregard. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 30 + is_claimant_or_partner: true + widowed_parents_allowance: 6_000 + person2: + age: 10 + is_claimant_or_partner: false + benunits: + benunit: + members: [person1, person2] + would_claim_uc: false + would_claim_housing_benefit: true + universal_credit_pre_benefit_cap: 0 + housing_benefit_pre_benefit_cap: 18_000 + child_benefit: 1_354.60 + child_tax_credit: 0 + income_support: 0 + jsa_income: 0 + esa_income: 0 + working_tax_credit: 0 + households: + household: + members: [person1, person2] + region: NORTH_EAST + output: + # 6,000 - 15 * 52 = 5,220. Basket = 18,000 + 1,354.60 + 5,220. + # Reg 75CA(2)(d) limit 22,020; reg 75D reduction = 24,574.60 - 22,020. + benefit_cap_welfare_benefits: 24_574.60 + housing_benefit_benefit_cap_reduction: 2_554.60 + housing_benefit: 15_445.40 + +- name: Case 2, an allowance below the disregard contributes no negative amount. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 30 + is_claimant_or_partner: true + widowed_parents_allowance: 260 + person2: + age: 10 + is_claimant_or_partner: false + benunits: + benunit: + members: [person1, person2] + would_claim_uc: false + would_claim_housing_benefit: true + universal_credit_pre_benefit_cap: 0 + housing_benefit_pre_benefit_cap: 18_000 + child_benefit: 1_354.60 + child_tax_credit: 0 + income_support: 0 + jsa_income: 0 + esa_income: 0 + working_tax_credit: 0 + households: + household: + members: [person1, person2] + region: NORTH_EAST + output: + # The whole £5 weekly allowance is disregarded; 18,000 + 1,354.60. + benefit_cap_welfare_benefits: 19_354.60 + housing_benefit_benefit_cap_reduction: 0 + housing_benefit: 18_000 + +- name: Case 3, an allowance at the disregard contributes nothing to the Housing Benefit cap. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 30 + is_claimant_or_partner: true + widowed_parents_allowance: 780 + person2: + age: 10 + is_claimant_or_partner: false + benunits: + benunit: + members: [person1, person2] + would_claim_uc: false + would_claim_housing_benefit: true + universal_credit_pre_benefit_cap: 0 + housing_benefit_pre_benefit_cap: 18_000 + child_benefit: 1_354.60 + child_tax_credit: 0 + income_support: 0 + jsa_income: 0 + esa_income: 0 + working_tax_credit: 0 + households: + household: + members: [person1, person2] + region: NORTH_EAST + output: + # 780 = 15 * 52; the counted allowance is exactly zero. + benefit_cap_welfare_benefits: 19_354.60 + housing_benefit_benefit_cap_reduction: 0 + housing_benefit: 18_000 + +- name: Case 4, Housing Benefit counts the partner's allowance and excludes another adult's award. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 32 + is_claimant_or_partner: true + person2: + age: 30 + is_claimant_or_partner: true + widowed_parents_allowance: 6_000 + person3: + age: 10 + is_claimant_or_partner: false + person4: + age: 45 + is_claimant_or_partner: false + widowed_parents_allowance: 9_000 + benunits: + benunit: + members: [person1, person2, person3, person4] + relation_type: COUPLE + would_claim_uc: false + would_claim_housing_benefit: true + universal_credit_pre_benefit_cap: 0 + housing_benefit_pre_benefit_cap: 18_000 + child_benefit: 1_354.60 + child_tax_credit: 0 + income_support: 0 + jsa_income: 0 + esa_income: 0 + working_tax_credit: 0 + households: + household: + members: [person1, person2, person3, person4] + region: NORTH_EAST + output: + # The couple has one recipient: 6,000 - 780. The unrelated adult's + # own allowance is outside this claimant's cap (HB reg 75A). + benefit_cap_welfare_benefits: 24_574.60 + housing_benefit_benefit_cap_reduction: 2_554.60 + housing_benefit: 15_445.40 + +- name: Case 5, a supplied Universal Credit award keeps the gross allowance in both cap baskets. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 30 + is_claimant_or_partner: true + widowed_parents_allowance: 6_000 + person2: + age: 10 + is_claimant_or_partner: false + benunits: + benunit: + members: [person1, person2] + # A supplied positive award remains the route even with no claim intent. + would_claim_uc: false + would_claim_housing_benefit: true + in_specified_or_temporary_accommodation: true + universal_credit_pre_benefit_cap: 18_000 + housing_benefit_pre_benefit_cap: 18_000 + child_benefit: 1_354.60 + child_tax_credit: 0 + income_support: 0 + jsa_income: 0 + esa_income: 0 + working_tax_credit: 0 + households: + household: + members: [person1, person2] + region: NORTH_EAST + output: + # UC regs 66(1)(b)(vi), 80(4): WPA remains 6,000 in full. + # Combined basket = 18,000 UC + 18,000 HB + 6,000 WPA + 1,354.60 CB. + # UC reg 80(2A) takes the 18,000 of Housing Benefit out of UC's basket. + benefit_cap_welfare_benefits: 43_354.60 + uc_benefit_cap_welfare_benefits: 25_354.60 + +- name: Case 6, a supplied combined cap total retains its Housing Benefit subtraction contract. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 30 + is_claimant_or_partner: true + widowed_parents_allowance: 6_000 + person2: + age: 10 + is_claimant_or_partner: false + benunits: + benunit: + members: [person1, person2] + would_claim_uc: true + would_claim_housing_benefit: true + in_specified_or_temporary_accommodation: true + universal_credit_pre_benefit_cap: 18_000 + housing_benefit_pre_benefit_cap: 6_000 + child_benefit: 1_354.60 + child_tax_credit: 0 + income_support: 0 + jsa_income: 0 + esa_income: 0 + working_tax_credit: 0 + benefit_cap_welfare_benefits: 31_354.60 + households: + household: + members: [person1, person2] + region: NORTH_EAST + output: + # The supplied combined total includes Housing Benefit. The existing + # input contract removes exactly the supplied 6,000: 31,354.60 - 6,000. + uc_benefit_cap_welfare_benefits: 25_354.60 + +- name: Case 7, Maternity Allowance remains fully counted for the Housing Benefit cap. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 30 + is_claimant_or_partner: true + maternity_allowance: 6_000 + person2: + age: 10 + is_claimant_or_partner: false + benunits: + benunit: + members: [person1, person2] + would_claim_uc: false + would_claim_housing_benefit: true + universal_credit_pre_benefit_cap: 0 + housing_benefit_pre_benefit_cap: 18_000 + child_benefit: 1_354.60 + child_tax_credit: 0 + income_support: 0 + jsa_income: 0 + esa_income: 0 + working_tax_credit: 0 + households: + household: + members: [person1, person2] + region: NORTH_EAST + output: + # Reg 40 and Sch 5 provide no corresponding £15 disregard for MA. + # 18,000 + 1,354.60 + 6,000 = 25,354.60; excess over 22,020 = 3,334.60. + benefit_cap_welfare_benefits: 25_354.60 + housing_benefit_benefit_cap_reduction: 3_334.60 + housing_benefit: 14_665.40 diff --git a/policyengine_uk/variables/gov/dwp/benefit_cap_welfare_benefits.py b/policyengine_uk/variables/gov/dwp/benefit_cap_welfare_benefits.py index 5bf4d5695c..0594addea6 100644 --- a/policyengine_uk/variables/gov/dwp/benefit_cap_welfare_benefits.py +++ b/policyengine_uk/variables/gov/dwp/benefit_cap_welfare_benefits.py @@ -18,6 +18,10 @@ # reg. 75C(2)(b)), so this total includes it. Universal Credit counts Housing # Benefit as nil (UC Regs 2013 reg. 80(2A)), so its cap reads # uc_benefit_cap_welfare_benefits, these benefits without Housing Benefit. +# On the Housing Benefit-only route, reg. 75C(4) counts Widowed Parent's +# Allowance after its income disregard (Sch. 5 para. 16(b)). The shared list +# keeps the gross award for Universal Credit; the formula replaces it only +# where the family has no Universal Credit award before the cap. # Universal Credit before the cap is in the total too; HB reg. 75F(1)(g) puts a # family receiving it outside the Housing Benefit cap. A family in specified # or temporary accommodation can receive both awards (housing_benefit_eligible), @@ -63,9 +67,15 @@ class benefit_cap_welfare_benefits(Variable): "count. The total includes Universal Credit and Housing Benefit " "before the cap (universal_credit_pre_benefit_cap, " "housing_benefit_pre_benefit_cap). Universal Credit's cap reads " - "uc_benefit_cap_welfare_benefits, which totals the same benefits " - "with Housing Benefit at nil (UC Regs 2013 reg. 80(2A)). Inputs that " - "supply this total include Housing Benefit in it. They also supply " + "uc_benefit_cap_welfare_benefits, which takes Housing Benefit as nil " + "(UC Regs 2013 reg. 80(2A)) and counts Widowed Parent's Allowance in " + "full. Without an award of Universal Credit before the cap, this " + "computed total counts Widowed Parent's Allowance after the Housing " + "Benefit income disregard (HB Regs 2006 reg. 75C(4), Sch. 5 para. " + "16(b)); with such a Universal Credit award it keeps the gross " + "allowance. For Universal Credit, inputs that supply this total " + "include its counted benefits, with the gross allowance, and Housing " + "Benefit in it. They also supply " "housing_benefit_pre_benefit_cap, which " "uc_benefit_cap_welfare_benefits subtracts, or supply " "uc_benefit_cap_welfare_benefits itself, with a value for every " @@ -86,6 +96,7 @@ class benefit_cap_welfare_benefits(Variable): "https://www.legislation.gov.uk/uksi/2013/376/regulation/80", "https://www.legislation.gov.uk/uksi/2006/213/regulation/75A", "https://www.legislation.gov.uk/uksi/2006/213/regulation/75C", + "https://www.legislation.gov.uk/uksi/2006/213/schedule/5/paragraph/16", ) def formula(benunit, period, parameters): @@ -111,9 +122,17 @@ def formula(benunit, period, parameters): income_related_esa_award_on_reports, couple, ) - return income_based + add_for_members( + total = income_based + add_for_members( benunit, period, CLAIMANT_OR_PARTNER_BENEFITS + FAMILY_BENEFITS, couple, ) + gross_wpa = add_for_members( + benunit, period, ["widowed_parents_allowance"], couple + ) + counted_wpa = benunit( + "housing_benefit_widowed_parents_allowance_income", period + ) + on_universal_credit = benunit("universal_credit_pre_benefit_cap", period) > 0 + return total - where(on_universal_credit, 0, gross_wpa - counted_wpa) diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/benefit_cap/uc_benefit_cap_welfare_benefits.py b/policyengine_uk/variables/gov/dwp/universal_credit/benefit_cap/uc_benefit_cap_welfare_benefits.py index d373a2387c..0ea096d065 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/benefit_cap/uc_benefit_cap_welfare_benefits.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/benefit_cap/uc_benefit_cap_welfare_benefits.py @@ -15,7 +15,9 @@ # UC Regs 2013 reg 80(2A): where the welfare benefit is Housing Benefit, "the # amount to be used is nil". The Universal Credit cap therefore counts the -# Housing Benefit cap's benefits other than Housing Benefit. +# Housing Benefit cap's benefits other than Housing Benefit. Widowed Parent's +# Allowance remains gross here (regs. 66(1)(b)(vi), 80(4)); the Housing +# Benefit-only total applies its own income disregard. UC_FAMILY_BENEFITS = [ benefit for benefit in FAMILY_BENEFITS @@ -44,11 +46,14 @@ class uc_benefit_cap_welfare_benefits(Variable): entity = BenUnit label = "Welfare benefits counted by the Universal Credit benefit cap" documentation = ( - "The welfare benefits the Universal Credit cap counts: those in " - "benefit_cap_welfare_benefits, for the same single person or couple, " - "with Housing Benefit at nil (UC Regs 2013 reg. 80(2A)). Where the " + "The welfare benefits the Universal Credit cap counts, for the same " + "single person or couple as benefit_cap_welfare_benefits, with " + "Housing Benefit at nil (UC Regs 2013 reg. 80(2A)). Widowed Parent's " + "Allowance counts in full (regs. 66(1)(b)(vi), 80(4)); the disregard " + "in the computed Housing Benefit-only total does not apply. Where the " "inputs supply benefit_cap_welfare_benefits, whose total includes " - "Housing Benefit, this subtracts the supplied " + "the Universal Credit-counted benefits and Housing Benefit, this " + "subtracts only the supplied " "housing_benefit_pre_benefit_cap. Inputs that supply the combined " "total also supply housing_benefit_pre_benefit_cap or this variable, " "with a value for every benefit unit; otherwise the formula raises " @@ -60,6 +65,7 @@ class uc_benefit_cap_welfare_benefits(Variable): unit = GBP reference = ( "https://www.legislation.gov.uk/ukpga/2012/5/section/96", + "https://www.legislation.gov.uk/uksi/2013/376/regulation/66", "https://www.legislation.gov.uk/uksi/2013/376/regulation/79", "https://www.legislation.gov.uk/uksi/2013/376/regulation/80", ) From 423594eec63365463f2f3466364515b3a5747bf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Juaristi?= <127882282+juaristi22@users.noreply.github.com> Date: Wed, 25 Nov 2026 01:10:59 +0000 Subject: [PATCH 2/2] Fix issues from review: clarify supplied housing benefit cap totals --- .../variables/gov/dwp/benefit_cap_welfare_benefits.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/policyengine_uk/variables/gov/dwp/benefit_cap_welfare_benefits.py b/policyengine_uk/variables/gov/dwp/benefit_cap_welfare_benefits.py index 0594addea6..132bef8f97 100644 --- a/policyengine_uk/variables/gov/dwp/benefit_cap_welfare_benefits.py +++ b/policyengine_uk/variables/gov/dwp/benefit_cap_welfare_benefits.py @@ -73,7 +73,10 @@ class benefit_cap_welfare_benefits(Variable): "computed total counts Widowed Parent's Allowance after the Housing " "Benefit income disregard (HB Regs 2006 reg. 75C(4), Sch. 5 para. " "16(b)); with such a Universal Credit award it keeps the gross " - "allowance. For Universal Credit, inputs that supply this total " + "allowance. A supplied total for a family without a Universal Credit " + "award before the cap already counts Widowed Parent's Allowance after " + "the Housing Benefit income disregard; the model uses the supplied " + "total as given. For Universal Credit, inputs that supply this total " "include its counted benefits, with the gross allowance, and Housing " "Benefit in it. They also supply " "housing_benefit_pre_benefit_cap, which "