From e36824a3adfa6733a6365898056101244f3c353a Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Wed, 30 Sep 2026 12:53:35 -0400 Subject: [PATCH 1/5] Exclude houseboats, caravans and mobile homes from the LHA No maximum rent (LHA) is determined where a Housing Benefit claim relates to rent for "a houseboat, caravan or mobile home which he occupies as his home" (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). LHA_eligible now reads accommodation_type and is false for MOBILE. housing_benefit_eligible tested social | LHA_eligible as a stand-in for renting, which would have cut these renters off Housing Benefit, so it now tests benunit_is_renting; their payments are still rent (reg 12(1)). Universal Credit has no such exception (SI 2013/376 Sch 4 Part 4) and is unchanged. Co-Authored-By: Claude Opus 5.5 --- changelog.d/lha-exclude-mobile-homes.fixed.md | 1 + .../programs/gov/dwp/housing-benefit.ipynb | 6 +- .../housing_benefit_eligible.yaml | 39 +++- .../housing_benefit/lha_mobile_homes.yaml | 152 ++++++++++++++ ..._housing_benefit_pension_age_properties.py | 4 +- .../tests/test_lha_mobile_homes_properties.py | 197 ++++++++++++++++++ .../variables/gov/dwp/LHA_eligible.py | 25 ++- .../housing_benefit_eligible.py | 10 +- 8 files changed, 416 insertions(+), 18 deletions(-) create mode 100644 changelog.d/lha-exclude-mobile-homes.fixed.md create mode 100644 policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/lha_mobile_homes.yaml create mode 100644 policyengine_uk/tests/test_lha_mobile_homes_properties.py diff --git a/changelog.d/lha-exclude-mobile-homes.fixed.md b/changelog.d/lha-exclude-mobile-homes.fixed.md new file mode 100644 index 0000000000..6e2c26f06c --- /dev/null +++ b/changelog.d/lha-exclude-mobile-homes.fixed.md @@ -0,0 +1 @@ +Private renters in a houseboat, caravan or mobile home no longer have their Housing Benefit eligible rent capped at the Local Housing Allowance (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)), and stay eligible for Housing Benefit. diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index 4f928b173d..1a55104e8a 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -19,7 +19,7 @@ "source": [ "## Eligibility\n", "\n", - "`housing_benefit_eligible` requires the benunit to be either in **social housing** or eligible for the **Local Housing Allowance** rate (broadly, private renters), with assessable capital at or below the working-age (or pension-age) capital limit, and to reach Housing Benefit by one of two routes:\n", + "`housing_benefit_eligible` requires the benunit to **rent** its home, from a social landlord or privately, with assessable capital at or below the working-age (or pension-age) capital limit, and to reach Housing Benefit by one of two routes:\n", "\n", "- **Pension age**: every adult in the benunit has reached the qualifying age for State Pension Credit (State Pension age). New Housing Benefit claims are open to them ([SI 2014/1230 reg. 6A(4)](https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A)), and Universal Credit is not, so neither a previous claim nor `would_claim_uc` matters.\n", "- **Continuing award**: any other benunit was **already claiming** Housing Benefit (proxied by a positive `housing_benefit_reported`) and is **not claiming Universal Credit**. Working-age and mixed-age families cannot make new claims; they claim the Universal Credit housing element instead. For mixed-age couples the reported award stands in for the saving for couples who were entitled to Housing Benefit or Pension Credit on 14 May 2019 ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4)).\n", @@ -43,7 +43,9 @@ "3. **Means test** (`housing_benefit_entitlement`): the benunit's `housing_benefit_applicable_income` in excess of the applicable amount is tapered against the eligible rent at the published `withdrawal_rate` (currently 0.65). The result is then reduced by `housing_benefit_non_dep_deductions` for any non-dependant adults living in the household.\n", "4. **Benefit cap** (`housing_benefit`): the post-means-test award is finally reduced by `benefit_cap_reduction` if the household's total benefit income exceeds the cap and no cap exemption applies.\n", "\n", - "The take-up gate (`would_claim_housing_benefit`) is applied inside `housing_benefit_pre_benefit_cap`." + "The take-up gate (`would_claim_housing_benefit`) is applied inside `housing_benefit_pre_benefit_cap`.\n", + "\n", + "**Houseboats, caravans and mobile homes.** No maximum rent (LHA) is determined where the rent is for a houseboat, caravan or mobile home the claimant occupies as their home ([SI 2006/213 reg. 13C(5)(d)(i)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13C); the same rule is in SI 2006/214 reg. 13C(5)(d)(i) and, for Northern Ireland, SR 2006/405 and SR 2006/406 reg. 14C(5)(d)(i)). `LHA_eligible` is therefore false where `accommodation_type` is `MOBILE`. Rent for the home, mooring charges and site payments are all still rent (reg. 12(1)(a), (b), (f) and (g)), so these families stay eligible for Housing Benefit. In law a rent officer (in Northern Ireland, the Housing Executive) then sets a maximum rent under the older rules (GB regs. 12C, 13 and 14). That maximum is the rent unless the rent officer finds the rent too high or the home too large, or the local reference rent for the area is lower. PolicyEngine has no such determination and uses the rent, which can overstate Housing Benefit for these families. Universal Credit has no such exception: it caps every private renter at the LHA ([SI 2013/376 Sch. 4 paras. 20, 22 and 25](https://www.legislation.gov.uk/uksi/2013/376/schedule/4))." ] }, { diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml index b00f14f60d..9af98f26d7 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml @@ -1,39 +1,60 @@ +# Continuing-award route for a working-age family (age defaults to 40) in +# 2021: a reported award, no Universal Credit claim, and renting, from a social +# landlord or privately. Private renters qualify whether or not the Local +# Housing Allowance sets their eligible rent (see lha_mobile_homes.yaml). + - name: Social housing eligible period: 2021 - absolute_error_margin: 5 + absolute_error_margin: 0 input: in_social_housing: true housing_benefit_reported: 1 - LHA_eligible: false + would_claim_uc: false + benunit_is_renting: true output: housing_benefit_eligible: true -- name: LHA eligible +- name: Private renter eligible period: 2021 - absolute_error_margin: 5 + absolute_error_margin: 0 input: in_social_housing: false housing_benefit_reported: 1 - LHA_eligible: true + would_claim_uc: false + benunit_is_renting: true output: housing_benefit_eligible: true - name: Not already enrolled period: 2021 - absolute_error_margin: 5 + absolute_error_margin: 0 input: in_social_housing: false housing_benefit_reported: 0 - LHA_eligible: true + would_claim_uc: false + benunit_is_renting: true output: housing_benefit_eligible: false - name: Not eligible period: 2021 - absolute_error_margin: 5 + absolute_error_margin: 0 input: in_social_housing: false housing_benefit_reported: 1 - LHA_eligible: false + would_claim_uc: false + benunit_is_renting: false output: housing_benefit_eligible: false + +- name: Private renter of a caravan eligible + period: 2021 + absolute_error_margin: 0 + input: + housing_benefit_reported: 1 + would_claim_uc: false + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + output: + LHA_eligible: false + housing_benefit_eligible: true diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/lha_mobile_homes.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/lha_mobile_homes.yaml new file mode 100644 index 0000000000..274e413657 --- /dev/null +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/lha_mobile_homes.yaml @@ -0,0 +1,152 @@ +# No maximum rent (LHA) is determined where the claim relates to rent for "a +# houseboat, caravan or mobile home which he occupies as his home" (SI 2006/213 +# and SI 2006/214 reg 13C(5)(d)(i)). The model takes such a family's rent as its +# eligible rent. It stays eligible for Housing Benefit, because those payments +# are still rent (reg 12(1)). + +- name: Private renter in a caravan is outside the LHA + period: 2026 + input: + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + output: + LHA_eligible: false + +- name: Private renter in a flat is within the LHA + period: 2026 + input: + tenure_type: RENT_PRIVATELY + accommodation_type: FLAT + output: + LHA_eligible: true + +- name: Private renter with unknown accommodation is within the LHA + period: 2026 + input: + tenure_type: RENT_PRIVATELY + accommodation_type: UNKNOWN + output: + LHA_eligible: true + +- name: Housing association tenant in a caravan is outside the LHA + # The landlord exclusion (reg 13C(5)(a)) applies whatever the dwelling. + period: 2026 + input: + tenure_type: RENT_FROM_HA + accommodation_type: MOBILE + output: + LHA_eligible: false + +- name: Owner of a caravan is not renting + period: 2026 + input: + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + output: + LHA_eligible: false + +- name: Pension-age private renter in a caravan can claim Housing Benefit + period: 2026 + input: + age: 70 + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + output: + LHA_eligible: false + housing_benefit_eligible: true + +# The next three cases share their facts and figures with the companion tests +# queued in TheAxiomFoundation/rulespec-uk#370 (cases P2, P1 and P5): rent of +# 10,400, a maximum rent (LHA) of 9,467.64 and an applicable amount of 13,312. + +- name: Caravan renter's eligible rent is the rent, not the LHA + # Income is below the applicable amount, so the award is the eligible rent + # (reg 70): the full rent of 10,400, not the LHA of 9,467.64. + period: 2026 + absolute_error_margin: 0.01 + input: + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + benunit_rent: 10_400 + LHA_cap: 9_467.64 + housing_benefit_applicable_amount: 13_312 + housing_benefit_applicable_income: 10_000 + housing_benefit_non_dep_deductions: 0 + output: + housing_benefit_entitlement: 10_400 + +- name: Flat renter's eligible rent is capped at the LHA + # Same family in a flat: the eligible rent is the LHA of 9,467.64. + period: 2026 + absolute_error_margin: 0.01 + input: + tenure_type: RENT_PRIVATELY + accommodation_type: FLAT + benunit_rent: 10_400 + LHA_cap: 9_467.64 + housing_benefit_applicable_amount: 13_312 + housing_benefit_applicable_income: 10_000 + housing_benefit_non_dep_deductions: 0 + output: + housing_benefit_entitlement: 9_467.64 + +- name: Caravan renter's taper comes off the full rent + # Income of 14,948.80 exceeds the applicable amount by 1,636.80, and 65% of + # that (1,063.92) comes off the eligible rent of 10,400 (reg 71): 9,336.08. + period: 2026 + absolute_error_margin: 0.01 + input: + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + benunit_rent: 10_400 + LHA_cap: 9_467.64 + housing_benefit_applicable_amount: 13_312 + housing_benefit_applicable_income: 14_948.80 + housing_benefit_non_dep_deductions: 0 + output: + housing_benefit_entitlement: 9_336.08 + +- name: Pension-age caravan renter with no income receives the full rent + # Every step computed: no income, so the award is the rent of 20,000 even + # though it is above the North East LHA rate. + period: 2026 + absolute_error_margin: 0.01 + input: + age: 70 + region: NORTH_EAST + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + rent: 20_000 + output: + LHA_eligible: false + housing_benefit_eligible: true + housing_benefit_entitlement: 20_000 + housing_benefit: 20_000 + +# Universal Credit has no such exception. Mooring charges and caravan or mobile +# home site payments are rent payments (SI 2013/376 Sch 1 para 2(c) and (d)), +# and Sch 4 Part 4 caps every renter whose landlord is not a provider of social +# housing at the LHA (paras 20(1), 22 and 25(2)), whatever the home. + +- name: Universal Credit caps a caravan renter at the LHA + period: 2026 + input: + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + benunit_rent: 20_000 + uc_LHA_cap: 6_000 + uc_non_dep_deductions: 0 + output: + uc_housing_costs_element: 6_000 + +- name: Universal Credit pays a housing association caravan tenant's rent + # Sch 4 Part 5 (social rented sector) applies, with no LHA cap. + period: 2026 + input: + tenure_type: RENT_FROM_HA + accommodation_type: MOBILE + benunit_rent: 20_000 + uc_LHA_cap: 6_000 + uc_non_dep_deductions: 0 + output: + uc_housing_costs_element: 20_000 diff --git a/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py b/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py index 37672b3c3d..32fc4dab13 100644 --- a/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py +++ b/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py @@ -140,7 +140,9 @@ def calculate(units, **kwargs): values["social"] = ( np.asarray(sim.calculate("in_social_housing", YEAR, map_to="benunit")) > 0 ) - values["renting"] = values["social"] | values["LHA_eligible"].astype(bool) + values["renting"] = values["social"] | ( + np.asarray(sim.calculate("benunit_is_renting", YEAR)) > 0 + ) capital = sim.tax_benefit_system.parameters( YEAR ).gov.dwp.housing_benefit.means_test.capital diff --git a/policyengine_uk/tests/test_lha_mobile_homes_properties.py b/policyengine_uk/tests/test_lha_mobile_homes_properties.py new file mode 100644 index 0000000000..db194f9ec7 --- /dev/null +++ b/policyengine_uk/tests/test_lha_mobile_homes_properties.py @@ -0,0 +1,197 @@ +"""Property-based tests for the houseboat, caravan and mobile home LHA exclusion. + +No maximum rent (LHA) is determined where a Housing Benefit claim relates to +rent for "a houseboat, caravan or mobile home which he occupies as his home" +(SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i)). Those payments are still rent +(reg 12(1)), so the family can still get Housing Benefit. Universal Credit has +no such exception (SI 2013/376 Sch 4 Part 4), so its housing element keeps the +LHA. + +Invariants, for any generated population of families: + +1. Definition: LHA_eligible is exactly renting, no member in social housing, + and accommodation other than a houseboat, caravan or mobile home. +2. Metamorphic: moving a family between a caravan and any other accommodation + type never changes whether it is eligible for Housing Benefit. +3. Metamorphic: moving a family from a caravan to other accommodation never + raises its Housing Benefit entitlement, and a caravan family's entitlement + never exceeds its rent. +4. Metamorphic: freezing the LHA never changes a caravan family's Housing + Benefit entitlement. +5. Metamorphic: accommodation type never changes the Universal Credit housing + element. +""" + +import numpy as np +from hypothesis import HealthCheck, given, settings +from hypothesis import strategies as st + +from policyengine_uk import Simulation +from policyengine_uk.variables.household.demographic.accommodation_type import ( + AccommodationType, +) + +YEAR = 2026 +PROPERTY_SETTINGS = settings( + max_examples=10, + deadline=None, + derandomize=True, + suppress_health_check=[HealthCheck.too_slow, HealthCheck.data_too_large], +) +TENURES = [ + "RENT_FROM_COUNCIL", + "RENT_FROM_HA", + "RENT_PRIVATELY", + "OWNED_OUTRIGHT", + "OWNED_WITH_MORTGAGE", +] +ACCOMMODATION = [value.name for value in AccommodationType] +NOT_MOBILE = [name for name in ACCOMMODATION if name != "MOBILE"] +REGIONS = ["LONDON", "NORTH_EAST", "SOUTH_EAST", "WALES", "SCOTLAND"] +money = st.floats(0, 30_000, allow_nan=False, allow_infinity=False) + + +@st.composite +def families(draw): + return dict( + # 67 and over is unambiguously pension age, 60 and under working age. + ages=draw( + st.sampled_from( + [ + [draw(st.integers(67, 100))], + [draw(st.integers(67, 100)), draw(st.integers(67, 100))], + [draw(st.integers(18, 60))], + [draw(st.integers(18, 60)), draw(st.integers(18, 60))], + ] + ) + ), + tenure=draw(st.sampled_from(TENURES)), + accommodation=draw(st.sampled_from(ACCOMMODATION)), + other_accommodation=draw(st.sampled_from(NOT_MOBILE)), + region=draw(st.sampled_from(REGIONS)), + rent=draw(money), + pension=draw(st.one_of(st.just(0.0), money)), + earnings=draw(st.one_of(st.just(0.0), money)), + ) + + +def situation(units, accommodation=None): + people, benunits, households = {}, {}, {} + for i, unit in enumerate(units): + names = [] + for j, age in enumerate(unit["ages"]): + name = f"p{i}_{j}" + person = {"age": {YEAR: age}} + if age >= 67: + person["private_pension_income"] = {YEAR: unit["pension"]} + else: + person["employment_income"] = {YEAR: unit["earnings"]} + people[name] = person + names.append(name) + benunits[f"b{i}"] = {"members": names} + households[f"h{i}"] = { + "members": names, + "rent": {YEAR: unit["rent"]}, + "tenure_type": {YEAR: unit["tenure"]}, + "region": {YEAR: unit["region"]}, + "accommodation_type": { + YEAR: ( + accommodation(unit) + if accommodation is not None + else unit["accommodation"] + ) + }, + } + return {"people": people, "benunits": benunits, "households": households} + + +VARIABLES = [ + "LHA_eligible", + "LHA_cap", + "benunit_rent", + "benunit_is_renting", + "housing_benefit_eligible", + "housing_benefit_entitlement", + "uc_housing_costs_element", +] + + +def calculate(units, accommodation=None, reform=None): + sim = Simulation(situation=situation(units, accommodation), reform=reform) + values = {v: np.asarray(sim.calculate(v, YEAR)) for v in VARIABLES} + values["social"] = ( + np.asarray(sim.calculate("in_social_housing", YEAR, map_to="benunit")) > 0 + ) + return values + + +def as_mobile(unit): + return "MOBILE" + + +def as_other(unit): + return unit["other_accommodation"] + + +unit_lists = st.lists(families(), min_size=1, max_size=30) + + +@PROPERTY_SETTINGS +@given(unit_lists) +def test_lha_eligible_excludes_houseboats_caravans_and_mobile_homes(units): + values = calculate(units) + mobile = np.array([unit["accommodation"] == "MOBILE" for unit in units]) + expected = values["benunit_is_renting"] & ~values["social"] & ~mobile + assert (values["LHA_eligible"] == expected).all(), units + + +@PROPERTY_SETTINGS +@given(unit_lists) +def test_accommodation_type_never_changes_housing_benefit_eligibility(units): + mobile = calculate(units, as_mobile) + other = calculate(units, as_other) + assert not mobile["LHA_eligible"].any() + assert ( + mobile["housing_benefit_eligible"] == other["housing_benefit_eligible"] + ).all(), units + + +@PROPERTY_SETTINGS +@given(unit_lists) +def test_lha_only_lowers_housing_benefit_entitlement(units): + mobile = calculate(units, as_mobile) + other = calculate(units, as_other) + entitlement = mobile["housing_benefit_entitlement"] + assert np.all(entitlement <= mobile["benunit_rent"] + 0.01), units + assert np.all(other["housing_benefit_entitlement"] <= entitlement + 0.01), units + # Where the LHA does not apply in either case, nothing else changes. + same = ~other["LHA_eligible"] + assert np.allclose( + other["housing_benefit_entitlement"][same], entitlement[same], atol=0.01 + ), units + + +@PROPERTY_SETTINGS +@given(unit_lists) +def test_lha_freeze_never_changes_caravan_housing_benefit(units): + frozen = calculate(units, as_mobile, reform={"gov.dwp.LHA.freeze": {"2026": True}}) + unfrozen = calculate( + units, as_mobile, reform={"gov.dwp.LHA.freeze": {"2026": False}} + ) + assert np.allclose( + frozen["housing_benefit_entitlement"], + unfrozen["housing_benefit_entitlement"], + atol=0.01, + ), units + + +@PROPERTY_SETTINGS +@given(unit_lists) +def test_accommodation_type_never_changes_universal_credit_housing(units): + mobile = calculate(units, as_mobile) + other = calculate(units, as_other) + assert np.allclose( + mobile["uc_housing_costs_element"], + other["uc_housing_costs_element"], + atol=0.01, + ), units diff --git a/policyengine_uk/variables/gov/dwp/LHA_eligible.py b/policyengine_uk/variables/gov/dwp/LHA_eligible.py index 008e3f822b..0a399a2cc7 100644 --- a/policyengine_uk/variables/gov/dwp/LHA_eligible.py +++ b/policyengine_uk/variables/gov/dwp/LHA_eligible.py @@ -10,12 +10,33 @@ class LHA_eligible(Variable): value_type = bool entity = BenUnit label = "Eligibility for Local Housing Allowance" - documentation = "Whether benefit unit is eligible for Local Housing Allowance" + documentation = ( + "Whether the benefit unit's Housing Benefit eligible rent is set by the " + "Local Housing Allowance: it rents, no member is in social housing, and " + "its home is not a houseboat, caravan or mobile home." + ) definition_period = YEAR + reference = ( + "https://www.legislation.gov.uk/uksi/2006/213/regulation/13C", + "https://www.legislation.gov.uk/uksi/2006/214/regulation/13C", + "https://www.legislation.gov.uk/nisr/2006/405/regulation/14C", + "https://www.legislation.gov.uk/nisr/2006/406/regulation/14C", + ) def formula(benunit, period, parameters): renting = benunit("benunit_is_renting", period) anyone_in_social_housing = benunit.any( benunit.members("in_social_housing", period) ) - return renting & ~anyone_in_social_housing + # No maximum rent (LHA) is determined where the claim relates to rent + # for "a houseboat, caravan or mobile home which he occupies as his + # home" (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); Northern + # Ireland: SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). A rent + # officer (in Northern Ireland, the Housing Executive) sets a maximum + # rent under the older rules instead (regs 12C, 13 and 14). The model + # has no such determination, so Housing Benefit uses the rent. + accommodation = benunit.value_from_first_person( + benunit.members.household("accommodation_type", period) + ) + mobile_home = accommodation == accommodation.possible_values.MOBILE + return renting & ~anyone_in_social_housing & ~mobile_home diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py index 9cab415763..bc1f894731 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py @@ -48,7 +48,11 @@ def formula(benunit, period, parameters): claiming_uc = benunit("would_claim_uc", period) continuing_award = already_claiming & ~claiming_uc social = benunit.any(person("in_social_housing", period)) - lha_eligible = benunit("LHA_eligible", period) + # Social and private renters alike. A private renter of a houseboat, + # caravan or mobile home has no maximum rent (LHA) (SI 2006/213 and + # SI 2006/214 reg 13C(5)(d)(i)) but still pays rent (reg 12(1)), so + # this tests renting, not LHA_eligible. + renting = benunit("benunit_is_renting", period) any_over_SP_age = benunit.any(sp_age) capital = benunit("housing_benefit_assessable_capital", period) hb_capital = parameters(period).gov.dwp.housing_benefit.means_test.capital @@ -58,7 +62,5 @@ def formula(benunit, period, parameters): hb_capital.working_age.limit, ) return ( - (pension_age | continuing_award) - & (social | lha_eligible) - & (capital <= limit) + (pension_age | continuing_award) & (social | renting) & (capital <= limit) ) From 9d094c89753296f17666f10c8585fb76c53f0d19 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Fri, 20 Nov 2026 17:41:32 +0000 Subject: [PATCH 2/5] Answer review round 1: exhaustive grid test, lodger, NI and meals cases, the rent officer route - test_lha_mobile_homes_properties.py now crosses five families, five tenures, five regions, two rents and two incomes (500 families, each in a caravan, another known home and an unknown home) in one simulation. Its expectations come from the inputs: the flag holds for private renters outside a caravan, and a family is eligible when it rents and has reached pension age or kept an award. The file runs in 8 seconds. - lha_mobile_homes.yaml gains a lodger in an owner-occupied caravan, both families in a privately rented caravan, Northern Ireland, a charge for meals (the caravan route deducts it and a maximum rent (LHA) doesn't), and issue 2928's household with its flat twin. Its amount cases use a claimant aged 70. - housing_benefit_eligible.yaml's social housing case supplies no renting flag, so it pins the social limb; an owner-occupier comment no longer names the LHA. - test_housing_benefit_pension_age_properties.py reads renting from the tenure it draws. - Comments, the docs paragraph and the changelog say who acts: a local authority determines no maximum rent (LHA), refers most of these claims to a rent officer and sets a maximum rent from that determination, which can fall to the single room rent for a single claimant under 35. An excluded tenancy keeps the rent less ineligible charges. No formula changes. Four mutants fail these tests: main's flag (10 YAML cases and both grid tests), eligibility reading the flag (4 and the grid), eligibility without the social limb (1 YAML case), and eligibility ignoring tenure (3 and the grid). Co-Authored-By: Claude Fable 5.2 --- changelog.d/2928.fixed.md | 2 +- .../programs/gov/dwp/housing-benefit.ipynb | 4 +- .../housing_benefit_eligible.yaml | 22 +- .../housing_benefit/lha_mobile_homes.yaml | 198 +++++++++-- ..._housing_benefit_pension_age_properties.py | 4 +- .../tests/test_lha_mobile_homes_properties.py | 331 +++++++++--------- .../variables/gov/dwp/LHA_eligible.py | 26 +- .../housing_benefit_eligible.py | 14 +- 8 files changed, 367 insertions(+), 234 deletions(-) diff --git a/changelog.d/2928.fixed.md b/changelog.d/2928.fixed.md index a0f59d98ea..21fea69d0e 100644 --- a/changelog.d/2928.fixed.md +++ b/changelog.d/2928.fixed.md @@ -1 +1 @@ -Housing Benefit no longer caps the eligible rent of a private renter in a houseboat, caravan or mobile home at the Local Housing Allowance (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). `LHA_eligible` is false where `accommodation_type` is `MOBILE`, and `housing_benefit_eligible` tests renting directly, so these families keep Housing Benefit. +The model now takes the rent, less any charge for meals, as the Housing Benefit eligible rent of a private renter in a houseboat, caravan or mobile home, instead of capping it at the Local Housing Allowance (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). `LHA_eligible` returns false where `accommodation_type` is `MOBILE`, and `housing_benefit_eligible` reads `benunit_is_renting`, so these families stay eligible and a supplied `LHA_eligible` no longer decides eligibility. The model has no rent officer determination, so it can overstate their Housing Benefit. diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index e2684f1d9e..dfdaaebadb 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -48,7 +48,7 @@ "\n", "The award is computed in four stages:\n", "\n", - "1. **Eligible rent**: the rent the benunit is liable for (`benunit_rent`). Where the Local Housing Allowance applies (`LHA_eligible`: renting, no member in social housing, and a home that is not a houseboat, caravan or mobile home), the eligible rent is the maximum rent (LHA), which is the LHA rate for the Housing Benefit category of dwelling (`housing_benefit_LHA_category`: the shared accommodation rate for a young individual with no non-dependant, or a claimant entitled to one bedroom who lacks exclusive use of self-contained accommodation, unless the severe disability premium applies, reg 13D(2)) or, where the rent is lower, the rent (`LHA_cap`; SI 2006/213 regs [12D(2)(a)](https://www.legislation.gov.uk/uksi/2006/213/regulation/12D) and [13D(5)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13D)).\n", + "1. **Eligible rent**: the rent the benunit is liable for (`benunit_rent`). Where the Local Housing Allowance applies (`LHA_eligible`: renting, no member in social housing, and a home other than a houseboat, caravan or mobile home), the eligible rent is the maximum rent (LHA), which is the LHA rate for the Housing Benefit category of dwelling (`housing_benefit_LHA_category`: the shared accommodation rate for a young individual with no non-dependant, or a claimant entitled to one bedroom who lacks exclusive use of self-contained accommodation, unless the severe disability premium applies, reg 13D(2)) or, where the rent is lower, the rent (`LHA_cap`; SI 2006/213 regs [12D(2)(a)](https://www.legislation.gov.uk/uksi/2006/213/regulation/12D) and [13D(5)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13D)).\n", "2. **Applicable amount** (`housing_benefit_applicable_amount`): a personal allowance derived from the benunit's composition (single, couple, lone parent) and age, plus any disability/carer premiums. This is the \"minimum income\" the household needs before HB tapers begin.\n", "3. **Means test** (`housing_benefit_entitlement`): the appropriate maximum Housing Benefit is the eligible rent less `housing_benefit_non_dep_deductions` for any non-dependant adults living in the household ([reg. 70](https://www.legislation.gov.uk/uksi/2006/213/regulation/70)). Under reg 74 (SI 2006/214 reg 55), for a non-dependant aged 18 or over in remunerative work (16 hours a week or more) the council deducts the amount for the band containing their normal gross weekly income, counting a couple's joint income and including each band's lower edge; for one not in remunerative work it deducts the lowest amount. It makes one deduction for a couple, the higher. Councils make no deduction for full-time students, State Pension Credit recipients, or under-25s on Income Support, income-based JSA or Universal Credit without earned income, and none for any non-dependant if the claimant or partner is blind or receives Attendance Allowance, the DLA care component, the PIP daily living component or Armed Forces Independence Payment. The published `withdrawal_rate` (currently 0.65) of the benunit's `housing_benefit_applicable_income` in excess of the applicable amount is deducted from that maximum ([SSCBA 1992 s. 130(3)(b)](https://www.legislation.gov.uk/ukpga/1992/4/section/130), [reg. 71](https://www.legislation.gov.uk/uksi/2006/213/regulation/71)). Because the LHA caps the eligible rent, the taper comes off the LHA: a private tenant with rent above the LHA and income above the applicable amount receives the LHA less the taper, not the lower of the LHA and the rent less the taper. The pension-age regulations (SI 2006/214) have the same rules at regs 12D, 13D, 50 and 51, and the Northern Ireland regulations at SR 2006/405 regs 13C, 14D, 68 and 69 and SR 2006/406 regs 13C, 14D, 48 and 49. Applicable income counts earnings, pensions and benefits net of the income tax and National Insurance on them. Income derived from capital (rent from property, interest and dividends) is not income: regulation 46(4) of the Housing Benefit Regulations 2006 treats it as capital, and Schedule 5 paragraph 22 of the pension-age regulations disregards it. The capital counts instead through `housing_benefit_tariff_income` and the capital limit. Rent for letting part of the home is the exception: it counts, less £20 a week per occupier.\n", " If the claimant or partner is on Universal Credit, Income Support, income-based Jobseeker's Allowance or income-related Employment and Support Allowance (`housing_benefit_on_passporting_benefit`), the whole of the family's earnings, other income and capital is disregarded ([SI 2006/213 Sch. 4 para. 12](https://www.legislation.gov.uk/uksi/2006/213/schedule/4/paragraph/12), [Sch. 5 para. 4](https://www.legislation.gov.uk/uksi/2006/213/schedule/5/paragraph/4) and [Sch. 6 para. 5](https://www.legislation.gov.uk/uksi/2006/213/schedule/6/paragraph/5); Northern Ireland: [SR 2006/405 Sch. 5 para. 12](https://www.legislation.gov.uk/nisr/2006/405/schedule/5/paragraph/12), [Sch. 6 para. 4](https://www.legislation.gov.uk/nisr/2006/405/schedule/6/paragraph/4) and [Sch. 7 para. 5](https://www.legislation.gov.uk/nisr/2006/405/schedule/7/paragraph/5)). `housing_benefit_applicable_income` and `housing_benefit_assessable_capital` are then zero, so the award is that maximum. This applies at any age: a mixed-age couple whose younger member is on one of these benefits is assessed under the working-age regulations ([SI 2006/213 reg. 5(1)(b)](https://www.legislation.gov.uk/uksi/2006/213/regulation/5)). Income Support, income-based Jobseeker's Allowance and income-related Employment and Support Allowance count when a positive amount is paid on the claimant's or partner's award (`in_receipt_of_income_support_jsa_ib_or_esa_ir`, which reads `claimant_or_partner_jsa_income` and `claimant_or_partner_esa_income`). Another member's own award, such as a non-dependant's, is payable to them and does not passport the claimant. A person is on Universal Credit on any day they are entitled to it, whether it is in payment or not ([reg. 2(3B)](https://www.legislation.gov.uk/uksi/2006/213/regulation/2)); PolicyEngine reads that as Universal Credit above nil before the benefit cap and deductions (`is_uc_entitled`), for a family that claims it, so the passport adds no circular dependency through the benefit cap. The universal credit limb applies from 28 October 2013 in Great Britain and 8 May 2018 in Northern Ireland (`gov.dwp.housing_benefit.means_test.universal_credit_passport`). It matters only where Housing Benefit is paid alongside Universal Credit, for specified or temporary accommodation, which the eligibility rules above do not yet model.\n", @@ -56,7 +56,7 @@ "\n", "The take-up gate (`would_claim_housing_benefit`) is applied inside `housing_benefit_pre_benefit_cap`.\n", "\n", - "**Houseboats, caravans and mobile homes.** No maximum rent (LHA) is determined where the rent is for a houseboat, caravan or mobile home the claimant occupies as their home ([SI 2006/213 reg. 13C(5)(d)(i)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13C); the same rule is in SI 2006/214 reg. 13C(5)(d)(i) and, for Northern Ireland, SR 2006/405 and SR 2006/406 reg. 14C(5)(d)(i)). `LHA_eligible` is therefore false where `accommodation_type` is `MOBILE`. Rent for the home, mooring charges and site payments are all still rent (reg. 12(1)(a), (b), (f) and (g)), so these families stay eligible for Housing Benefit. In law a rent officer (in Northern Ireland, the Housing Executive) then sets a maximum rent under the older rules (GB regs. 12C, 13 and 14). That maximum is the rent unless the rent officer finds the rent too high or the home too large, or the local reference rent for the area is lower. PolicyEngine has no such determination and uses the rent, which can overstate Housing Benefit for these families. Universal Credit has no such exception: it caps every private renter at the LHA ([SI 2013/376 Sch. 4 paras. 20, 22 and 25](https://www.legislation.gov.uk/uksi/2013/376/schedule/4))." + "**Houseboats, caravans and mobile homes.** The council determines no maximum rent (LHA) where the rent is for a houseboat, caravan or mobile home the claimant occupies as their home ([SI 2006/213 reg. 13C(5)(d)(i)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13C)); [SI 2006/214 reg. 13C(5)(d)(i)](https://www.legislation.gov.uk/uksi/2006/214/regulation/13C) and, for Northern Ireland, [SR 2006/405](https://www.legislation.gov.uk/nisr/2006/405/regulation/14C) and [SR 2006/406 reg. 14C(5)(d)(i)](https://www.legislation.gov.uk/nisr/2006/406/regulation/14C) carry the same exclusion. PolicyEngine sets `LHA_eligible` to false where `accommodation_type` is `MOBILE`. The council still pays Housing Benefit toward the rent or licence fee, mooring charges and site payments ([reg. 12(1)(a), (b), (f) and (g)](https://www.legislation.gov.uk/uksi/2006/213/regulation/12)), so these families stay eligible where they rent. PolicyEngine doesn't model an owner-occupier's mooring charges or site payments. For most of these claims, the council refers the rent to a rent officer ([reg. 14](https://www.legislation.gov.uk/uksi/2006/213/regulation/14)) and sets a maximum rent from the rent officer's determination ([reg. 13](https://www.legislation.gov.uk/uksi/2006/213/regulation/13)), and that maximum becomes the eligible rent ([reg. 12C](https://www.legislation.gov.uk/uksi/2006/213/regulation/12C)). In Northern Ireland the Housing Executive decides ([SR 2006/405 regs. 13B](https://www.legislation.gov.uk/nisr/2006/405/regulation/13B) and [14](https://www.legislation.gov.uk/nisr/2006/405/regulation/14)). The maximum rent falls below the rent where the rent officer finds the rent significantly high or the home too large, where the rent exceeds the local reference rent for the area, or, for a single claimant under 35, where it exceeds the single room rent ([reg. 13(5)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13)). For an excluded tenancy, such as a pitch on a council's own caravan site ([Sch. 2](https://www.legislation.gov.uk/uksi/2006/213/schedule/2)), the council takes the rent less ineligible charges as the eligible rent ([reg. 12B](https://www.legislation.gov.uk/uksi/2006/213/regulation/12B)). PolicyEngine has no rent officer determination, so it takes the rent, less any charge for meals, as the eligible rent in every case and can overstate Housing Benefit for these families. The DWP makes no such exception in Universal Credit and caps every private renter's housing costs at the LHA ([SI 2013/376 Sch. 4 paras. 20, 22 and 25](https://www.legislation.gov.uk/uksi/2013/376/schedule/4))." ] }, { diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml index 6063041e7f..8aec04fdfe 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml @@ -1,15 +1,18 @@ -# Continuing-award route for a working-age family (age defaults to 40) in -# 2021: a reported award, no Universal Credit claim, and renting, from a social -# landlord or privately. Private renters qualify whether or not the Local -# Housing Allowance sets their eligible rent (see lha_mobile_homes.yaml). +# In 2021 a working-age family (age defaults to 40) with a reported award and +# no Universal Credit claim keeps Housing Benefit on the continuing-award +# route if it rents, from a social landlord or privately. The next five cases +# test that route. Private renters qualify whether or not the Local Housing +# Allowance sets their eligible rent (see lha_mobile_homes.yaml). - name: Social housing eligible + # The social housing flag alone opens the route, as it did when the formula + # read LHA_eligible for private renters. period: 2021 input: would_claim_uc: false # continuing award route: not claiming Universal Credit in_social_housing: true housing_benefit_reported: 1 - benunit_is_renting: true + benunit_is_renting: false output: housing_benefit_eligible: true @@ -44,9 +47,9 @@ housing_benefit_eligible: false - name: Private renter of a caravan keeps a continuing award outside the LHA - # No maximum rent (LHA) is determined for a houseboat, caravan or mobile - # home (SI 2006/213 reg 13C(5)(d)(i)), but the payments are still rent - # (reg 12(1)), so the award continues. + # A local authority determines no maximum rent (LHA) for a houseboat, + # caravan or mobile home (SI 2006/213 reg 13C(5)(d)(i)) but still pays + # Housing Benefit toward the rent (reg 12(1)), so the award continues. period: 2021 input: would_claim_uc: false # continuing award route: not claiming Universal Credit @@ -373,8 +376,7 @@ housing_benefit: 0 uc_housing_costs_element: 0 -# Tenure: an owner occupier is neither a social nor a Local Housing Allowance -# renter, so the status doesn't open Housing Benefit. +# An owner occupier doesn't rent, so the status doesn't open Housing Benefit. - name: An owner occupier with the status gets no Housing Benefit period: 2026 absolute_error_margin: 0.01 diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/lha_mobile_homes.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/lha_mobile_homes.yaml index e2f2b1c59c..3de3a38ce6 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/lha_mobile_homes.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/lha_mobile_homes.yaml @@ -1,11 +1,12 @@ -# No maximum rent (LHA) is determined where the claim relates to rent for "a -# houseboat, caravan or mobile home which he occupies as his home" (SI 2006/213 -# and SI 2006/214 reg 13C(5)(d)(i); Northern Ireland: SR 2006/405 and SR 2006/406 -# reg 14C(5)(d)(i)). The model takes such a family's rent as its eligible rent. -# It stays eligible for Housing Benefit, because those payments are still rent -# (reg 12(1); NI reg 13(1)). +# A local authority determines no maximum rent (LHA) where the claim relates +# to rent for "a houseboat, caravan or mobile home which he occupies as his +# home" (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); Northern Ireland: +# SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). It still pays Housing Benefit +# toward those payments (reg 12(1); NI reg 13(1)), so the family stays +# eligible, and the model takes its rent, less any charge for meals, as the +# eligible rent. -- name: Private renter in a caravan is outside the LHA +- name: The LHA doesn't apply to a private renter in a caravan period: 2025 input: tenure_type: RENT_PRIVATELY @@ -13,7 +14,7 @@ output: LHA_eligible: false -- name: Private renter in a flat is within the LHA +- name: The LHA applies to a private renter in a flat period: 2025 input: tenure_type: RENT_PRIVATELY @@ -21,7 +22,7 @@ output: LHA_eligible: true -- name: Private renter with unknown accommodation is within the LHA +- name: The LHA applies to a private renter whose accommodation is unknown period: 2025 input: tenure_type: RENT_PRIVATELY @@ -29,8 +30,9 @@ output: LHA_eligible: true -- name: Housing association tenant in a caravan is outside the LHA - # The landlord exclusion (reg 13C(5)(a)) applies whatever the dwelling. +- name: The LHA doesn't apply to a housing association tenant in a caravan + # A local authority determines no LHA for a housing association tenant, + # whatever the home (reg 13C(5)(a)). period: 2025 input: tenure_type: RENT_FROM_HA @@ -38,13 +40,18 @@ output: LHA_eligible: false -- name: Owner of a caravan is not renting +- name: The LHA doesn't apply to an owner-occupier of a caravan, who gets no Housing Benefit + # Housing Benefit can meet an owner's site payments and mooring charges + # (reg 12(1)(f) and (g)). The model doesn't cover them: an owner-occupier + # doesn't rent, so it pays no Housing Benefit. period: 2025 input: + age: 70 tenure_type: OWNED_OUTRIGHT accommodation_type: MOBILE output: LHA_eligible: false + housing_benefit_eligible: false - name: Pension-age private renter in a caravan can claim Housing Benefit period: 2025 @@ -56,16 +63,104 @@ LHA_eligible: false housing_benefit_eligible: true -# The next three cases share their facts and figures with the companion tests -# queued in TheAxiomFoundation/rulespec-uk#370 (cases P2, P1 and P5): rent of -# 10,400, a maximum rent (LHA) of 9,467.64 and an applicable amount of 13,312. +- name: Northern Ireland, a pension-age private renter in a caravan can claim Housing Benefit outside the LHA + # SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i). + period: 2025 + input: + age: 70 + region: NORTHERN_IRELAND + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + output: + LHA_eligible: false + housing_benefit_eligible: true + +- name: The LHA doesn't apply to a lodger in an owner-occupied caravan + # The lodger pays the householder to live in the caravan and occupies it as + # their home, so reg 13C(5)(d)(i) covers the lodger's claim. + period: 2025 + input: + people: + householder: + age: 50 + is_household_head: true + lodger: + age: 40 + rent_paid_as_lodger: 5_200 + benunits: + householder_family: + members: [householder] + lodger_family: + members: [lodger] + households: + home: + members: [householder, lodger] + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + output: + benunit_tenure_type: [OWNED_OUTRIGHT, RENT_PRIVATELY] + LHA_eligible: [false, false] + +- name: The LHA applies to the same lodger in an owner-occupied flat + period: 2025 + input: + people: + householder: + age: 50 + is_household_head: true + lodger: + age: 40 + rent_paid_as_lodger: 5_200 + benunits: + householder_family: + members: [householder] + lodger_family: + members: [lodger] + households: + home: + members: [householder, lodger] + tenure_type: OWNED_OUTRIGHT + accommodation_type: FLAT + output: + benunit_tenure_type: [OWNED_OUTRIGHT, RENT_PRIVATELY] + LHA_eligible: [false, true] + +- name: The LHA applies to neither family in a privately rented caravan + period: 2025 + input: + people: + householder: + age: 50 + is_household_head: true + lodger: + age: 40 + rent_paid_as_lodger: 5_200 + benunits: + householder_family: + members: [householder] + lodger_family: + members: [lodger] + households: + home: + members: [householder, lodger] + rent: 9_000 + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + output: + benunit_is_renting: [true, true] + LHA_eligible: [false, false] + +# The next three cases give a single claimant aged 70 a rent of 10,400, a +# maximum rent (LHA) of 9,467.64 and an applicable amount of 13,312. - name: Caravan renter's eligible rent is the rent, not the LHA - # Income is below the applicable amount, so the award is the eligible rent - # (reg 70): the full rent of 10,400, not the LHA of 9,467.64. + # Income of 10,000 falls short of the applicable amount of 13,312, so the + # award equals the eligible rent (SSCBA 1992 s.130(3)(a); SI 2006/214 reg + # 50): the full rent of 10,400, not the LHA of 9,467.64. period: 2025 absolute_error_margin: 0.01 input: + age: 70 tenure_type: RENT_PRIVATELY accommodation_type: MOBILE benunit_rent: 10_400 @@ -76,11 +171,13 @@ output: housing_benefit_entitlement: 10_400 -- name: Flat renter's eligible rent is capped at the LHA - # Same family in a flat: the eligible rent is the LHA of 9,467.64. +- name: The LHA caps a flat renter's eligible rent + # For the same claimant in a flat, the model caps the eligible rent at the + # LHA of 9,467.64. period: 2025 absolute_error_margin: 0.01 input: + age: 70 tenure_type: RENT_PRIVATELY accommodation_type: FLAT benunit_rent: 10_400 @@ -93,10 +190,12 @@ - name: Caravan renter's taper comes off the full rent # Income of 14,948.80 exceeds the applicable amount by 1,636.80, and 65% of - # that (1,063.92) comes off the eligible rent of 10,400 (reg 71): 9,336.08. + # that (1,063.92) comes off the eligible rent of 10,400 (SSCBA 1992 + # s.130(3)(b); SI 2006/214 reg 51): 9,336.08. period: 2025 absolute_error_margin: 0.01 input: + age: 70 tenure_type: RENT_PRIVATELY accommodation_type: MOBILE benunit_rent: 10_400 @@ -107,9 +206,30 @@ output: housing_benefit_entitlement: 9_336.08 +- name: Caravan renter's eligible rent leaves out a charge for meals + # A local authority deducts a charge for meals from the rent outside the LHA + # (SI 2006/214 reg 12B(2) and Sch 1 para 2), and not from a maximum rent + # (LHA). So this claimant gets 10,400 - 1,560 = 8,840 in a caravan, less + # than the 9,467.64 the same rent earns in a flat. + period: 2025 + absolute_error_margin: 0.01 + input: + age: 70 + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + benunit_rent: 10_400 + LHA_cap: 9_467.64 + housing_benefit_meals_deduction: 1_560 + housing_benefit_applicable_amount: 13_312 + housing_benefit_applicable_income: 10_000 + housing_benefit_non_dep_deductions: 0 + output: + housing_benefit_entitlement: 8_840 + - name: Pension-age caravan renter with no income receives the full rent - # Every step computed: no income, so the award is the rent of 20,000 even - # though it is above the North East LHA rate. + # The model computes every step. With no income, the award equals the rent + # of 7,800, though the rent exceeds the one-bedroom LHA rate of 5,864.04 in + # Tyneside, where the model places a North East household. period: 2025 absolute_error_margin: 0.01 input: @@ -117,17 +237,34 @@ region: NORTH_EAST tenure_type: RENT_PRIVATELY accommodation_type: MOBILE - rent: 20_000 + rent: 7_800 output: LHA_eligible: false housing_benefit_eligible: true - housing_benefit_entitlement: 20_000 - housing_benefit: 20_000 + housing_benefit_entitlement: 7_800 + housing_benefit: 7_800 + +- name: The LHA caps the same pensioner's Housing Benefit in a flat + # 52 x 112.77, Tyneside's one-bedroom LHA rate for 2025-26. + period: 2025 + absolute_error_margin: 0.01 + input: + age: 70 + region: NORTH_EAST + tenure_type: RENT_PRIVATELY + accommodation_type: FLAT + rent: 7_800 + output: + LHA_eligible: true + housing_benefit_eligible: true + housing_benefit_entitlement: 5_864.04 + housing_benefit: 5_864.04 -# Universal Credit has no such exception. Mooring charges and caravan or mobile -# home site payments are rent payments (SI 2013/376 Sch 1 para 2(c) and (d)), -# and Sch 4 Part 4 caps every renter whose landlord is not a provider of social -# housing at the LHA (paras 20(1), 22 and 25(2)), whatever the home. +# The DWP makes no such exception in Universal Credit. It counts mooring +# charges and caravan or mobile home site payments as rent payments (SI +# 2013/376 Sch 1 para 2(c) and (d)) and caps at the LHA every renter whose +# landlord isn't a provider of social housing, whatever the home (Sch 4 paras +# 20(1), 22 and 25(2)). - name: Universal Credit caps a caravan renter at the LHA period: 2025 @@ -141,7 +278,8 @@ uc_housing_costs_element: 6_000 - name: Universal Credit pays a housing association caravan tenant's rent - # Sch 4 Part 5 (social rented sector) applies, with no LHA cap. + # The DWP calculates a social renter's housing costs under Sch 4 Part 5, + # with no LHA cap. period: 2025 input: tenure_type: RENT_FROM_HA diff --git a/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py b/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py index df6791a6f1..e10cc7cbf8 100644 --- a/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py +++ b/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py @@ -153,9 +153,7 @@ def calculate(units, **kwargs): values["social"] = ( np.asarray(sim.calculate("in_social_housing", YEAR, map_to="benunit")) > 0 ) - values["renting"] = values["social"] | ( - np.asarray(sim.calculate("benunit_is_renting", YEAR)) > 0 - ) + values["renting"] = np.array([unit["tenure"].startswith("RENT_") for unit in units]) capital = sim.tax_benefit_system.parameters( YEAR ).gov.dwp.housing_benefit.means_test.capital diff --git a/policyengine_uk/tests/test_lha_mobile_homes_properties.py b/policyengine_uk/tests/test_lha_mobile_homes_properties.py index 6c971a78d0..221a92aa0a 100644 --- a/policyengine_uk/tests/test_lha_mobile_homes_properties.py +++ b/policyengine_uk/tests/test_lha_mobile_homes_properties.py @@ -1,50 +1,63 @@ -"""Property-based tests for the houseboat, caravan and mobile home LHA exclusion. - -No maximum rent (LHA) is determined where a Housing Benefit claim relates to -rent for "a houseboat, caravan or mobile home which he occupies as his home" -(SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); Northern Ireland: SR 2006/405 -and SR 2006/406 reg 14C(5)(d)(i)). Those payments are still rent (reg 12(1); -NI reg 13(1)), so the family can still get Housing Benefit. Universal Credit -has no such exception (SI 2013/376 Sch 4 Part 4), so its housing element keeps -the LHA. - -Invariants, for any generated population of families: - -1. Definition: LHA_eligible is exactly renting, no member in social housing, - and accommodation other than a houseboat, caravan or mobile home. -2. Metamorphic: moving a family between a caravan and any other accommodation - type never changes whether it is eligible for Housing Benefit. -3. Metamorphic: moving a family from a caravan to other accommodation never - raises its Housing Benefit entitlement, and a caravan family's entitlement - never exceeds its rent. -4. Metamorphic: freezing the LHA never changes a caravan family's Housing - Benefit entitlement. -5. Metamorphic: accommodation type never changes the Universal Credit housing - element. -6. Metamorphic: among homes other than a houseboat, caravan or mobile home, - the accommodation type changes nothing: not the LHA flag, not Housing - Benefit eligibility and not the entitlement. - -A fixed example then shows invariant 4 is not vacuous: the same freeze moves -the entitlement of the same family in a flat. +"""Exhaustive tests of the houseboat, caravan and mobile home LHA exclusion. + +A local authority determines no maximum rent (LHA) where a Housing Benefit +claim relates to rent for "a houseboat, caravan or mobile home which he +occupies as his home" (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); Northern +Ireland: SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). It still pays Housing +Benefit toward those payments (reg 12(1); NI reg 13(1)), so the family stays +eligible. The DWP makes no such exception in Universal Credit (SI 2013/376 +Sch 4 Part 4) and still caps the housing element at the LHA. + +The grid crosses five families, five tenures, five regions, two rents and two +incomes: 500 families, none of whose rent includes meals. One simulation +holds each family three times: in a caravan, in another type of home (the +grid cycles through the six other known types), and in a home of unknown +type. + +Invariants, for every family in the grid: + +1. Definition: LHA_eligible holds exactly for a private renter whose home is + not a houseboat, caravan or mobile home. The expectation comes from the + tenure and accommodation the grid sets, not from the model. +2. Eligibility: a family is eligible for Housing Benefit exactly when it + rents and has either reached pension age or kept an existing award, + whatever its home. So moving a family between a caravan and any other home + never changes its eligibility. +3. Entitlement: moving a family from a caravan to another home never raises + its Housing Benefit entitlement, a caravan family's entitlement never + exceeds its rent, and where the LHA applies in neither home the two + entitlements match. This holds because no rent in the grid includes meals: + a local authority deducts a charge for meals from a caravan renter's + eligible rent, and not from a maximum rent (LHA). +4. Universal Credit: the home never changes the housing element. +5. Other homes: among homes other than a houseboat, caravan or mobile home, + the type changes none of the variables the test computes. + +A fixed example then shows the LHA at work: freezing LHA rates lowers the +entitlement of a pensioner in a flat and leaves the same pensioner's +entitlement in a caravan at the rent. """ +from itertools import product + import numpy as np -from hypothesis import HealthCheck, given, settings -from hypothesis import strategies as st from policyengine_uk import Simulation from policyengine_uk.variables.household.demographic.accommodation_type import ( AccommodationType, ) -YEAR = 2026 -PROPERTY_SETTINGS = settings( - max_examples=10, - deadline=None, - derandomize=True, - suppress_health_check=[HealthCheck.too_slow, HealthCheck.data_too_large], -) +YEAR = 2025 +FREEZE_YEAR = 2026 +# Each family: its members' ages, and whether it reports a Housing Benefit +# award and doesn't claim Universal Credit (the continuing-award route). +FAMILIES = { + "pensioner": ([70], False), + "pensioner couple": ([70, 72], False), + "working-age adult": ([40], False), + "working-age adult with an award": ([40], True), + "working-age couple with an award": ([40, 38], True), +} TENURES = [ "RENT_FROM_COUNCIL", "RENT_FROM_HA", @@ -52,59 +65,19 @@ "OWNED_OUTRIGHT", "OWNED_WITH_MORTGAGE", ] -ACCOMMODATION = [value.name for value in AccommodationType] -NOT_MOBILE = [name for name in ACCOMMODATION if name != "MOBILE"] -REGIONS = ["LONDON", "NORTH_EAST", "SOUTH_EAST", "WALES", "SCOTLAND"] -money = st.floats(0, 30_000, allow_nan=False, allow_infinity=False) - - -@st.composite -def families(draw): - return dict( - # 67 and over is unambiguously pension age, 60 and under working age. - ages=draw( - st.sampled_from( - [ - [draw(st.integers(67, 100))], - [draw(st.integers(67, 100)), draw(st.integers(67, 100))], - [draw(st.integers(18, 60))], - [draw(st.integers(18, 60)), draw(st.integers(18, 60))], - ] - ) - ), - tenure=draw(st.sampled_from(TENURES)), - other_accommodation=draw(st.sampled_from(NOT_MOBILE)), - region=draw(st.sampled_from(REGIONS)), - rent=draw(money), - pension=draw(st.one_of(st.just(0.0), money)), - earnings=draw(st.one_of(st.just(0.0), money)), +REGIONS = ["LONDON", "NORTH_EAST", "WALES", "SCOTLAND", "NORTHERN_IRELAND"] +# Below and above every one-bedroom LHA rate in these regions. +RENTS = [3_000, 30_000] +INCOMES = [0, 15_000] +OTHER_KNOWN = [ + value.name for value in AccommodationType if value.name not in ("MOBILE", "UNKNOWN") +] +GRID = [ + dict(family=family, tenure=tenure, region=region, rent=rent, income=income) + for family, tenure, region, rent, income in product( + FAMILIES, TENURES, REGIONS, RENTS, INCOMES ) - - -def situation(units, accommodation): - people, benunits, households = {}, {}, {} - for i, unit in enumerate(units): - names = [] - for j, age in enumerate(unit["ages"]): - name = f"p{i}_{j}" - person = {"age": {YEAR: age}} - if age >= 67: - person["private_pension_income"] = {YEAR: unit["pension"]} - else: - person["employment_income"] = {YEAR: unit["earnings"]} - people[name] = person - names.append(name) - benunits[f"b{i}"] = {"members": names} - households[f"h{i}"] = { - "members": names, - "rent": {YEAR: unit["rent"]}, - "tenure_type": {YEAR: unit["tenure"]}, - "region": {YEAR: unit["region"]}, - "accommodation_type": {YEAR: accommodation(unit)}, - } - return {"people": people, "benunits": benunits, "households": households} - - +] VARIABLES = [ "LHA_eligible", "LHA_cap", @@ -116,105 +89,117 @@ def situation(units, accommodation): ] -def calculate(units, accommodation, reform=None): - sim = Simulation(situation=situation(units, accommodation), reform=reform) - values = {v: np.asarray(sim.calculate(v, YEAR)) for v in VARIABLES} - values["social"] = ( - np.asarray(sim.calculate("in_social_housing", YEAR, map_to="benunit")) > 0 +def add_household(situation, name, unit, accommodation, year): + ages, has_award = FAMILIES[unit["family"]] + members = [] + for j, age in enumerate(ages): + person = {"age": {year: age}} + if j == 0: + source = "private_pension_income" if age >= 67 else "employment_income" + person[source] = {year: unit["income"]} + if has_award: + person["housing_benefit_reported"] = {year: 5_000} + member = f"{name}_{j}" + situation["people"][member] = person + members.append(member) + benunit = {"members": members} + if has_award: + benunit["would_claim_uc"] = {year: False} + situation["benunits"][name] = benunit + situation["households"][name] = { + "members": members, + "rent": {year: unit["rent"]}, + "tenure_type": {year: unit["tenure"]}, + "region": {year: unit["region"]}, + "accommodation_type": {year: accommodation}, + } + + +def calculate(homes, year=YEAR, reform=None): + """Compute VARIABLES for (name, unit, accommodation) homes, in order.""" + situation = {"people": {}, "benunits": {}, "households": {}} + for name, unit, accommodation in homes: + add_household(situation, name, unit, accommodation, year) + sim = Simulation(situation=situation, reform=reform) + return {v: np.asarray(sim.calculate(v, year)) for v in VARIABLES} + + +def test_accommodation_type_invariants(): + size = len(GRID) + homes = ( + [(f"mobile{i}", unit, "MOBILE") for i, unit in enumerate(GRID)] + + [ + (f"other{i}", unit, OTHER_KNOWN[i % len(OTHER_KNOWN)]) + for i, unit in enumerate(GRID) + ] + + [(f"unknown{i}", unit, "UNKNOWN") for i, unit in enumerate(GRID)] ) - return values - - -def as_mobile(unit): - return "MOBILE" - - -def as_other(unit): - return unit["other_accommodation"] - + values = calculate(homes) + mobile = {v: values[v][:size] for v in VARIABLES} + other = {v: values[v][size : 2 * size] for v in VARIABLES} + unknown = {v: values[v][2 * size :] for v in VARIABLES} -unit_lists = st.lists(families(), min_size=1, max_size=30) - - -@PROPERTY_SETTINGS -@given(unit_lists) -def test_accommodation_type_invariants(units): - """Invariants 1, 2, 3, 5 and 6, from the same three populations.""" - mobile = calculate(units, as_mobile) - other = calculate(units, as_other) - unknown = calculate(units, lambda unit: "UNKNOWN") + private = np.array([unit["tenure"] == "RENT_PRIVATELY" for unit in GRID]) + renting = np.array([unit["tenure"].startswith("RENT_") for unit in GRID]) + pension_age = np.array([unit["family"].startswith("pensioner") for unit in GRID]) + has_award = np.array([FAMILIES[unit["family"]][1] for unit in GRID]) # 1. Definition. - assert not mobile["LHA_eligible"].any(), units - for values in (other, unknown): - expected = values["benunit_is_renting"] & ~values["social"] - assert (values["LHA_eligible"] == expected).all(), units - - # 2. Housing Benefit eligibility ignores the accommodation type. - assert ( - mobile["housing_benefit_eligible"] == other["housing_benefit_eligible"] - ).all(), units + assert not mobile["LHA_eligible"].any() + assert (other["LHA_eligible"] == private).all() + assert (unknown["LHA_eligible"] == private).all() + + # 2. Eligibility ignores the home. + eligible = renting & (pension_age | has_award) + for home in (mobile, other, unknown): + assert (home["housing_benefit_eligible"] == eligible).all() + # The grid holds eligible caravan renters of both kinds. + assert (eligible & private & pension_age).any() + assert (eligible & private & has_award).any() # 3. The LHA only lowers the entitlement, and a caravan family's # entitlement never exceeds its rent. entitlement = mobile["housing_benefit_entitlement"] - assert np.all(entitlement <= mobile["benunit_rent"] + 0.01), units - assert np.all(other["housing_benefit_entitlement"] <= entitlement + 0.01), units - # Where the LHA does not apply in either case, nothing else changes. - same = ~other["LHA_eligible"] + assert np.all(entitlement <= mobile["benunit_rent"] + 0.01) + assert np.all(other["housing_benefit_entitlement"] <= entitlement + 0.01) + # Where the LHA applies in neither home, nothing changes. assert np.allclose( - other["housing_benefit_entitlement"][same], entitlement[same], atol=0.01 - ), units - - # 5. Universal Credit ignores the accommodation type. - assert np.allclose( - mobile["uc_housing_costs_element"], - other["uc_housing_costs_element"], - atol=0.01, - ), units - - # 6. Other accommodation types change nothing. - for variable in VARIABLES: - assert np.allclose(other[variable], unknown[variable], atol=0.01), ( - variable, - units, + other["housing_benefit_entitlement"][~private], entitlement[~private], atol=0.01 + ) + # The LHA cuts the entitlement of some private renters in other homes. + assert (other["housing_benefit_entitlement"][private] < entitlement[private]).any() + + # 4. Universal Credit ignores the home. + for home in (other, unknown): + assert np.allclose( + mobile["uc_housing_costs_element"], + home["uc_housing_costs_element"], + atol=0.01, ) - -@settings(PROPERTY_SETTINGS, max_examples=5) -@given(unit_lists) -def test_lha_freeze_never_changes_caravan_housing_benefit(units): - frozen = calculate(units, as_mobile, reform={"gov.dwp.LHA.freeze": {"2026": True}}) - unfrozen = calculate( - units, as_mobile, reform={"gov.dwp.LHA.freeze": {"2026": False}} - ) - assert np.allclose( - frozen["housing_benefit_entitlement"], - unfrozen["housing_benefit_entitlement"], - atol=0.01, - ), units + # 5. Other homes change nothing. + for variable in VARIABLES: + assert np.allclose(other[variable], unknown[variable], atol=0.01), variable def test_lha_freeze_moves_a_flat_renter_but_not_a_caravan_renter(): """A pensioner with no income renting privately in London for 30,000.""" unit = dict( - ages=[70], + family="pensioner", tenure="RENT_PRIVATELY", - other_accommodation="FLAT", region="LONDON", - rent=30_000.0, - pension=0.0, - earnings=0.0, + rent=30_000, + income=0, + ) + homes = [("flat", unit, "FLAT"), ("caravan", unit, "MOBILE")] + frozen, unfrozen = ( + calculate( + homes, + year=FREEZE_YEAR, + reform={"gov.dwp.LHA.freeze": {str(FREEZE_YEAR): freeze}}, + )["housing_benefit_entitlement"] + for freeze in (True, False) ) - frozen = {"gov.dwp.LHA.freeze": {"2026": True}} - unfrozen = {"gov.dwp.LHA.freeze": {"2026": False}} - flat = [ - calculate([unit], as_other, reform)["housing_benefit_entitlement"][0] - for reform in (frozen, unfrozen) - ] - caravan = [ - calculate([unit], as_mobile, reform)["housing_benefit_entitlement"][0] - for reform in (frozen, unfrozen) - ] - assert flat[0] < flat[1] < 30_000 - assert caravan == [30_000, 30_000] + flat, caravan = 0, 1 + assert frozen[flat] < unfrozen[flat] < 30_000 + assert frozen[caravan] == unfrozen[caravan] == 30_000 diff --git a/policyengine_uk/variables/gov/dwp/LHA_eligible.py b/policyengine_uk/variables/gov/dwp/LHA_eligible.py index a7a54950c8..a809e694b2 100644 --- a/policyengine_uk/variables/gov/dwp/LHA_eligible.py +++ b/policyengine_uk/variables/gov/dwp/LHA_eligible.py @@ -6,9 +6,10 @@ class LHA_eligible(Variable): entity = BenUnit label = "Eligibility for Local Housing Allowance" documentation = ( - "Whether the benefit unit's Housing Benefit eligible rent is set by the " - "Local Housing Allowance: it rents, no member is in social housing, and " - "its home is not a houseboat, caravan or mobile home." + "Whether the local authority caps the benefit unit's Housing Benefit " + "eligible rent at the Local Housing Allowance: true where the benefit " + "unit rents, no member lives in social housing, and the household " + "doesn't live in a houseboat, caravan or mobile home." ) definition_period = YEAR reference = ( @@ -23,13 +24,18 @@ def formula(benunit, period, parameters): anyone_in_social_housing = benunit.any( benunit.members("in_social_housing", period) ) - # No maximum rent (LHA) is determined where the claim relates to rent - # for "a houseboat, caravan or mobile home which he occupies as his - # home" (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); Northern - # Ireland: SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). A rent - # officer (in Northern Ireland, the Housing Executive) sets a maximum - # rent under the older rules instead (regs 12C, 13 and 14). The model - # has no such determination, so Housing Benefit uses the rent. + # A local authority determines no maximum rent (LHA) where the claim + # relates to rent for "a houseboat, caravan or mobile home which he + # occupies as his home" (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); + # Northern Ireland: SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). For + # most of these claims it refers the rent to a rent officer and sets + # a maximum rent from the rent officer's determination (GB regs 14, + # 13 and 12C); in Northern Ireland the Housing Executive decides (NI + # regs 13B and 14). For an excluded tenancy, such as a pitch on a + # council's own caravan site, the eligible rent is the rent less + # ineligible charges (GB reg 12B and Sch 2). The model has no rent + # officer determination, so housing_benefit_entitlement takes the + # rent, less any charge for meals, as the eligible rent. accommodation = benunit.value_from_first_person( benunit.members.household("accommodation_type", period) ) diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py index 2cc446032d..63480d9e6f 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py @@ -53,6 +53,8 @@ class housing_benefit_eligible(Variable): "https://www.legislation.gov.uk/nisr/2016/226/regulation/47", "https://www.legislation.gov.uk/uksi/2025/1148/article/7", "https://www.legislation.gov.uk/nisr/2025/176/article/7", + "https://www.legislation.gov.uk/uksi/2006/213/regulation/12", + "https://www.legislation.gov.uk/nisr/2006/405/regulation/13", ) def formula(benunit, period, parameters): @@ -112,11 +114,13 @@ def formula(benunit, period, parameters): # only Housing Benefit pays it. accommodation = benunit("in_specified_or_temporary_accommodation", period) social = benunit.any(person("in_social_housing", period)) - # Social and private renters alike. A private renter of a houseboat, - # caravan or mobile home has no maximum rent (LHA) (SI 2006/213 and - # SI 2006/214 reg 13C(5)(d)(i); NI: SR 2006/405 and SR 2006/406 reg - # 14C(5)(d)(i)) but still pays rent (reg 12(1); NI reg 13(1)), so - # this tests renting, not LHA_eligible. + # Social and private renters both qualify. A local authority + # determines no maximum rent (LHA) for a private renter of a + # houseboat, caravan or mobile home (SI 2006/213 and SI 2006/214 reg + # 13C(5)(d)(i); NI: SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)) but + # still pays Housing Benefit toward the rent, mooring charges and + # site payments (reg 12(1); NI reg 13(1)), so eligibility reads + # benunit_is_renting rather than LHA_eligible. renting = benunit("benunit_is_renting", period) pension_age_regulations = benunit( "housing_benefit_pension_age_regulations_apply", period From e658beec712b751861a2310a949e4e6d12de874c Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Fri, 20 Nov 2026 17:58:18 +0000 Subject: [PATCH 3/5] Answer the independent review: the supplied-flag contract, the rent officer route, more cases - LHA_eligible's documentation says what the flag does in the model: it selects the eligible rent (LHA_cap, or the rent less the prescribed deduction for meals), and housing_benefit_eligible reads the tenure. A supplied LHA_eligible therefore changes the eligible rent without changing eligibility. Three cases pin that contract. - The comments, the docs paragraph and the changelog describe the route outside the LHA with its limits: a council normally refers the rent to a rent officer and sets a maximum rent from the determination (in Northern Ireland the Housing Executive decides), Housing Benefit can meet the payments subject to the other conditions of an award, and Universal Credit keeps a private renter's rent payments subject to the LHA cap. - The docs' eligibility summary lists the specified or temporary accommodation route, which the formula already has. - New cases: a private renter aged 25 with a continuing award in a caravan, a couple with one member in social housing (for the flag and for eligibility), a pension-age lodger's award in a caravan and in a flat, and a flat twin for the meals case. The amount cases say which figures they supply. No formula changes. Seven mutants fail these tests: main's flag, eligibility reading the flag, eligibility without the social limb, eligibility ignoring tenure, the exclusion only from age 35, and all-members social housing in each formula. Co-Authored-By: Claude Fable 5.2 --- changelog.d/2928.fixed.md | 2 +- .../programs/gov/dwp/housing-benefit.ipynb | 7 +- .../housing_benefit_eligible.yaml | 53 ++++++++- .../housing_benefit/lha_mobile_homes.yaml | 111 +++++++++++++++--- .../tests/test_lha_mobile_homes_properties.py | 14 +-- .../variables/gov/dwp/LHA_eligible.py | 31 +++-- .../housing_benefit_eligible.py | 15 +-- 7 files changed, 183 insertions(+), 50 deletions(-) diff --git a/changelog.d/2928.fixed.md b/changelog.d/2928.fixed.md index 21fea69d0e..899cc6d47d 100644 --- a/changelog.d/2928.fixed.md +++ b/changelog.d/2928.fixed.md @@ -1 +1 @@ -The model now takes the rent, less any charge for meals, as the Housing Benefit eligible rent of a private renter in a houseboat, caravan or mobile home, instead of capping it at the Local Housing Allowance (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). `LHA_eligible` returns false where `accommodation_type` is `MOBILE`, and `housing_benefit_eligible` reads `benunit_is_renting`, so these families stay eligible and a supplied `LHA_eligible` no longer decides eligibility. The model has no rent officer determination, so it can overstate their Housing Benefit. +The model now takes the rent, less the prescribed deduction for meals, as the Housing Benefit eligible rent of a private renter in a houseboat, caravan or mobile home, instead of capping it at the Local Housing Allowance (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). By default `LHA_eligible` returns false where `accommodation_type` is `MOBILE`. `housing_benefit_eligible` reads `benunit_is_renting` in place of `LHA_eligible`, so these families stay eligible, and a supplied `LHA_eligible` now changes the eligible rent without changing eligibility. The model has no rent officer determination, so it can overstate their Housing Benefit. diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index dfdaaebadb..978a2c9068 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -19,12 +19,13 @@ "source": [ "## Eligibility\n", "\n", - "`housing_benefit_eligible` requires the benunit to **rent** its home, from a social landlord or privately, with assessable capital at or below the working-age (or pension-age) capital limit, and to reach Housing Benefit by one of two routes:\n", + "`housing_benefit_eligible` requires the benunit to **rent** its home, from a social landlord or privately, with assessable capital at or below the working-age (or pension-age) capital limit, and to reach Housing Benefit by one of three routes:\n", "\n", "- **Pension age**: the claimant and any partner have reached the qualifying age for State Pension Credit (State Pension age), or the family is a mixed-age couple that keeps the pension-age route: one entitled to Pension Credit or pension-age Housing Benefit on 14 May 2019 and ever since ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4)), or any mixed-age couple not reported on Universal Credit before 15 May 2019 (`meets_pension_credit_age_conditions`). New Housing Benefit claims are open to them ([SI 2014/1230 reg. 6A(4) and (5)](https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A)), and Universal Credit is not, so neither a previous claim nor `would_claim_uc` matters.\n", + "- **Specified or temporary accommodation**: `in_specified_or_temporary_accommodation` is a boolean benunit input, defaulting to `False`. When supplied as `True`, it permits new Housing Benefit claims without a reported previous award, under [SI 2014/1230 reg. 6A(2)](https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A) and [SR 2016/226 reg. 4A(2)](https://www.legislation.gov.uk/nisr/2016/226/regulation/4A). The input refers to the statutory definitions: [GB specified accommodation](https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/3A) and [temporary accommodation](https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/3B), and their [NI specified](https://www.legislation.gov.uk/nisr/2016/216/schedule/1/paragraph/4) and [temporary](https://www.legislation.gov.uk/nisr/2016/216/schedule/1/paragraph/4A) equivalents. It is not inferred from tenure or a general supported-housing label.\n", "- **Continuing award**: any other benunit was **already claiming** Housing Benefit (proxied by a positive `housing_benefit_reported`) and is **not claiming Universal Credit**. Working-age families, and mixed-age couples without the saving, cannot make new claims; they claim the Universal Credit housing element instead.\n", "\n", - "The pension-age test counts the same benunit members as Universal Credit's working-age test, and the continuing-award route requires not claiming Universal Credit, so no benunit receives both.\n", + "The accommodation route permits Housing Benefit alongside Universal Credit: these Housing Benefit awards do not terminate on a UC claim ([SI 2014/1230 reg. 8(3)](https://www.legislation.gov.uk/uksi/2014/1230/regulation/8); [NI reg. 6(3)](https://www.legislation.gov.uk/nisr/2016/226/regulation/6)). When the input is `True`, PolicyEngine excludes the UC housing costs element, as the corresponding rent payments are excluded from UC housing costs ([SI 2013/376 Schedule 1 para. 3(h)-(i)](https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/3); [NI Schedule 1 para. 3(e)-(ea)](https://www.legislation.gov.uk/nisr/2016/216/schedule/1/paragraph/3)). Existing rental, capital, entitlement and Housing Benefit take-up checks still apply. The input does not implement the special eligible-rent or benefit-cap treatment of these accommodation types.\n", "\n", "Parliament abolished Housing Benefit in Welfare Reform Act 2012 s. 33(1)(d). Under [SI 2025/1148 art. 7](https://www.legislation.gov.uk/uksi/2025/1148/article/7), the abolition takes effect on 1 July 2026 for each award that hasn't already ended under SI 2014/1230 reg. 7(2), 8(2A) or 46(1)(a) and isn't due to end after a two week run-on (art. 7(1) and (3)), with these exceptions:\n", "\n", @@ -56,7 +57,7 @@ "\n", "The take-up gate (`would_claim_housing_benefit`) is applied inside `housing_benefit_pre_benefit_cap`.\n", "\n", - "**Houseboats, caravans and mobile homes.** The council determines no maximum rent (LHA) where the rent is for a houseboat, caravan or mobile home the claimant occupies as their home ([SI 2006/213 reg. 13C(5)(d)(i)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13C)); [SI 2006/214 reg. 13C(5)(d)(i)](https://www.legislation.gov.uk/uksi/2006/214/regulation/13C) and, for Northern Ireland, [SR 2006/405](https://www.legislation.gov.uk/nisr/2006/405/regulation/14C) and [SR 2006/406 reg. 14C(5)(d)(i)](https://www.legislation.gov.uk/nisr/2006/406/regulation/14C) carry the same exclusion. PolicyEngine sets `LHA_eligible` to false where `accommodation_type` is `MOBILE`. The council still pays Housing Benefit toward the rent or licence fee, mooring charges and site payments ([reg. 12(1)(a), (b), (f) and (g)](https://www.legislation.gov.uk/uksi/2006/213/regulation/12)), so these families stay eligible where they rent. PolicyEngine doesn't model an owner-occupier's mooring charges or site payments. For most of these claims, the council refers the rent to a rent officer ([reg. 14](https://www.legislation.gov.uk/uksi/2006/213/regulation/14)) and sets a maximum rent from the rent officer's determination ([reg. 13](https://www.legislation.gov.uk/uksi/2006/213/regulation/13)), and that maximum becomes the eligible rent ([reg. 12C](https://www.legislation.gov.uk/uksi/2006/213/regulation/12C)). In Northern Ireland the Housing Executive decides ([SR 2006/405 regs. 13B](https://www.legislation.gov.uk/nisr/2006/405/regulation/13B) and [14](https://www.legislation.gov.uk/nisr/2006/405/regulation/14)). The maximum rent falls below the rent where the rent officer finds the rent significantly high or the home too large, where the rent exceeds the local reference rent for the area, or, for a single claimant under 35, where it exceeds the single room rent ([reg. 13(5)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13)). For an excluded tenancy, such as a pitch on a council's own caravan site ([Sch. 2](https://www.legislation.gov.uk/uksi/2006/213/schedule/2)), the council takes the rent less ineligible charges as the eligible rent ([reg. 12B](https://www.legislation.gov.uk/uksi/2006/213/regulation/12B)). PolicyEngine has no rent officer determination, so it takes the rent, less any charge for meals, as the eligible rent in every case and can overstate Housing Benefit for these families. The DWP makes no such exception in Universal Credit and caps every private renter's housing costs at the LHA ([SI 2013/376 Sch. 4 paras. 20, 22 and 25](https://www.legislation.gov.uk/uksi/2013/376/schedule/4))." + "**Houseboats, caravans and mobile homes.** The council determines no maximum rent (LHA) where the rent is for a houseboat, caravan or mobile home the claimant occupies as their home ([SI 2006/213 reg. 13C(5)(d)(i)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13C)); [SI 2006/214 reg. 13C(5)(d)(i)](https://www.legislation.gov.uk/uksi/2006/214/regulation/13C) and, for Northern Ireland, [SR 2006/405](https://www.legislation.gov.uk/nisr/2006/405/regulation/14C) and [SR 2006/406 reg. 14C(5)(d)(i)](https://www.legislation.gov.uk/nisr/2006/406/regulation/14C) carry the same exclusion. By default PolicyEngine sets `LHA_eligible` to false where `accommodation_type` is `MOBILE`, and `housing_benefit_entitlement` then takes `benunit_rent` less `housing_benefit_meals_deduction` as the eligible rent. Housing Benefit can still meet the rent or licence fee, mooring charges and site payments ([reg. 12(1)(a), (b), (f) and (g)](https://www.legislation.gov.uk/uksi/2006/213/regulation/12)), subject to the other conditions of an award, so `housing_benefit_eligible` reads `benunit_is_renting` and these families stay eligible where they rent. PolicyEngine doesn't model an owner-occupier's mooring charges or site payments. A supplied `LHA_eligible` selects the eligible rent only, so a user can take another claim outside the LHA, such as a hostel, without changing its eligibility. For these claims the council normally refers the rent to a rent officer ([reg. 14](https://www.legislation.gov.uk/uksi/2006/213/regulation/14)) and sets a maximum rent from the rent officer's determination ([reg. 13](https://www.legislation.gov.uk/uksi/2006/213/regulation/13)), which becomes the eligible rent ([reg. 12C](https://www.legislation.gov.uk/uksi/2006/213/regulation/12C)); in Northern Ireland the Housing Executive decides ([SR 2006/405 regs. 15](https://www.legislation.gov.uk/nisr/2006/405/regulation/15), [14](https://www.legislation.gov.uk/nisr/2006/405/regulation/14) and [13B](https://www.legislation.gov.uk/nisr/2006/405/regulation/13B)). That maximum can fall below the rent, for example to the single room rent for some single claimants under 35 on the working-age regulations. Where no maximum rent applies, the council starts from the payments the claimant is liable for and takes off ineligible charges ([reg. 12B](https://www.legislation.gov.uk/uksi/2006/213/regulation/12B)). PolicyEngine has no rent officer determination and deducts only the prescribed charge for meals, so it can overstate Housing Benefit for these families. The DWP makes no such exception in Universal Credit: a private renter's rent payments stay subject to the LHA cap whatever the home ([SI 2013/376 Sch. 4 paras. 20, 22 and 25](https://www.legislation.gov.uk/uksi/2013/376/schedule/4)), and they include mooring charges and site payments ([Sch. 1 para. 2](https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/2))." ] }, { diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml index 8aec04fdfe..b8077dc7ce 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml @@ -1,8 +1,8 @@ # In 2021 a working-age family (age defaults to 40) with a reported award and # no Universal Credit claim keeps Housing Benefit on the continuing-award -# route if it rents, from a social landlord or privately. The next five cases -# test that route. Private renters qualify whether or not the Local Housing -# Allowance sets their eligible rent (see lha_mobile_homes.yaml). +# route if it rents, from a social landlord or privately. The next eight +# cases test that route. Private renters qualify whether or not the Local +# Housing Allowance sets their eligible rent (see lha_mobile_homes.yaml). - name: Social housing eligible # The social housing flag alone opens the route, as it did when the formula @@ -16,6 +16,28 @@ output: housing_benefit_eligible: true +- name: Social housing eligible when one member of a couple is in it + period: 2021 + input: + people: + adult: + age: 40 + in_social_housing: true + housing_benefit_reported: 1 + partner: + age: 40 + in_social_housing: false + benunits: + benunit: + members: [adult, partner] + would_claim_uc: false # continuing award route: not claiming Universal Credit + benunit_is_renting: false + households: + household: + members: [adult, partner] + output: + housing_benefit_eligible: true + - name: Private renter eligible period: 2021 input: @@ -48,8 +70,8 @@ - name: Private renter of a caravan keeps a continuing award outside the LHA # A local authority determines no maximum rent (LHA) for a houseboat, - # caravan or mobile home (SI 2006/213 reg 13C(5)(d)(i)) but still pays - # Housing Benefit toward the rent (reg 12(1)), so the award continues. + # caravan or mobile home (SI 2006/213 reg 13C(5)(d)(i)), and Housing + # Benefit can still meet the rent (reg 12(1)), so the award continues. period: 2021 input: would_claim_uc: false # continuing award route: not claiming Universal Credit @@ -60,6 +82,27 @@ LHA_eligible: false housing_benefit_eligible: true +- name: A supplied LHA_eligible of false doesn't end a private renter's continuing award + # The flag selects the eligible rent only; the tenure decides eligibility. + period: 2021 + input: + would_claim_uc: false # continuing award route: not claiming Universal Credit + housing_benefit_reported: 1 + tenure_type: RENT_PRIVATELY + LHA_eligible: false + output: + housing_benefit_eligible: true + +- name: A supplied LHA_eligible of true doesn't open Housing Benefit to an owner occupier + period: 2021 + input: + would_claim_uc: false # continuing award route: not claiming Universal Credit + housing_benefit_reported: 1 + tenure_type: OWNED_OUTRIGHT + LHA_eligible: true + output: + housing_benefit_eligible: false + - name: The tax credit closure keeps Housing Benefit for specified or temporary accommodation period: 2026 absolute_error_margin: 0.01 diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/lha_mobile_homes.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/lha_mobile_homes.yaml index 3de3a38ce6..122cce4925 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/lha_mobile_homes.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/lha_mobile_homes.yaml @@ -1,10 +1,10 @@ # A local authority determines no maximum rent (LHA) where the claim relates # to rent for "a houseboat, caravan or mobile home which he occupies as his # home" (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); Northern Ireland: -# SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). It still pays Housing Benefit -# toward those payments (reg 12(1); NI reg 13(1)), so the family stays -# eligible, and the model takes its rent, less any charge for meals, as the -# eligible rent. +# SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). Housing Benefit can still +# meet those payments (reg 12(1); NI reg 13(1)), so the family stays eligible +# where it rents, and the model takes its rent, less the prescribed deduction +# for meals, as the eligible rent. - name: The LHA doesn't apply to a private renter in a caravan period: 2025 @@ -75,17 +75,55 @@ LHA_eligible: false housing_benefit_eligible: true -- name: The LHA doesn't apply to a lodger in an owner-occupied caravan +- name: A private renter aged 25 with a continuing award keeps it outside the LHA in a caravan + # Reg 13C(5)(d)(i) has no age condition. + period: 2025 + input: + age: 25 + housing_benefit_reported: 1 + would_claim_uc: false + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + output: + LHA_eligible: false + housing_benefit_eligible: true + +- name: The LHA doesn't apply to a couple in a flat when one of them is in social housing + # One member in social housing takes the family outside the LHA. + period: 2025 + input: + people: + adult: + age: 70 + in_social_housing: true + partner: + age: 70 + in_social_housing: false + benunits: + benunit: + members: [adult, partner] + households: + household: + members: [adult, partner] + tenure_type: RENT_PRIVATELY + accommodation_type: FLAT + output: + LHA_eligible: false + housing_benefit_eligible: true + +- name: A pension-age lodger in an owner-occupied caravan gets Housing Benefit for the whole rent # The lodger pays the householder to live in the caravan and occupies it as - # their home, so reg 13C(5)(d)(i) covers the lodger's claim. + # their home, so reg 13C(5)(d)(i) covers the lodger's claim. With no income, + # the award equals the rent of 5,200. period: 2025 + absolute_error_margin: 0.01 input: people: householder: age: 50 is_household_head: true lodger: - age: 40 + age: 70 rent_paid_as_lodger: 5_200 benunits: householder_family: @@ -95,21 +133,26 @@ households: home: members: [householder, lodger] + region: NORTH_EAST tenure_type: OWNED_OUTRIGHT accommodation_type: MOBILE output: benunit_tenure_type: [OWNED_OUTRIGHT, RENT_PRIVATELY] LHA_eligible: [false, false] + housing_benefit_eligible: [false, true] + housing_benefit: [0, 5_200] -- name: The LHA applies to the same lodger in an owner-occupied flat +- name: The LHA caps the same lodger's Housing Benefit in an owner-occupied flat + # 52 x 87.76, Tyneside's shared accommodation LHA rate for 2025-26. period: 2025 + absolute_error_margin: 0.01 input: people: householder: age: 50 is_household_head: true lodger: - age: 40 + age: 70 rent_paid_as_lodger: 5_200 benunits: householder_family: @@ -119,11 +162,14 @@ households: home: members: [householder, lodger] + region: NORTH_EAST tenure_type: OWNED_OUTRIGHT accommodation_type: FLAT output: benunit_tenure_type: [OWNED_OUTRIGHT, RENT_PRIVATELY] LHA_eligible: [false, true] + housing_benefit_eligible: [false, true] + housing_benefit: [0, 4_563.52] - name: The LHA applies to neither family in a privately rented caravan period: 2025 @@ -150,8 +196,10 @@ benunit_is_renting: [true, true] LHA_eligible: [false, false] -# The next three cases give a single claimant aged 70 a rent of 10,400, a -# maximum rent (LHA) of 9,467.64 and an applicable amount of 13,312. +# The next six cases give a single claimant aged 70 a rent of 10,400, a +# maximum rent (LHA) of 9,467.64 and an applicable amount of 13,312. The +# maximum rent, the applicable amount and the meals deduction of 1,560 are +# values the cases supply, not rates in force. - name: Caravan renter's eligible rent is the rent, not the LHA # Income of 10,000 falls short of the applicable amount of 13,312, so the @@ -226,6 +274,41 @@ output: housing_benefit_entitlement: 8_840 +- name: The LHA caps the same rent with meals in a flat, with no deduction for meals + period: 2025 + absolute_error_margin: 0.01 + input: + age: 70 + tenure_type: RENT_PRIVATELY + accommodation_type: FLAT + benunit_rent: 10_400 + LHA_cap: 9_467.64 + housing_benefit_meals_deduction: 1_560 + housing_benefit_applicable_amount: 13_312 + housing_benefit_applicable_income: 10_000 + housing_benefit_non_dep_deductions: 0 + output: + housing_benefit_entitlement: 9_467.64 + +- name: A supplied LHA_eligible of false takes a flat renter's rent as the eligible rent + # The flag selects the eligible rent only, so a user can take another claim + # outside the LHA, such as a hostel (reg 13C(5)(d)(ii)). + period: 2025 + absolute_error_margin: 0.01 + input: + age: 70 + tenure_type: RENT_PRIVATELY + accommodation_type: FLAT + LHA_eligible: false + benunit_rent: 10_400 + LHA_cap: 9_467.64 + housing_benefit_applicable_amount: 13_312 + housing_benefit_applicable_income: 10_000 + housing_benefit_non_dep_deductions: 0 + output: + housing_benefit_eligible: true + housing_benefit_entitlement: 10_400 + - name: Pension-age caravan renter with no income receives the full rent # The model computes every step. With no income, the award equals the rent # of 7,800, though the rent exceeds the one-bedroom LHA rate of 5,864.04 in @@ -262,9 +345,9 @@ # The DWP makes no such exception in Universal Credit. It counts mooring # charges and caravan or mobile home site payments as rent payments (SI -# 2013/376 Sch 1 para 2(c) and (d)) and caps at the LHA every renter whose -# landlord isn't a provider of social housing, whatever the home (Sch 4 paras -# 20(1), 22 and 25(2)). +# 2013/376 Sch 1 para 2(c) and (d)), and rent payments to a landlord who isn't +# a provider of social housing stay subject to the LHA cap, whatever the home +# (Sch 4 paras 20(1), 22 and 25(2)). - name: Universal Credit caps a caravan renter at the LHA period: 2025 diff --git a/policyengine_uk/tests/test_lha_mobile_homes_properties.py b/policyengine_uk/tests/test_lha_mobile_homes_properties.py index 221a92aa0a..30301955b4 100644 --- a/policyengine_uk/tests/test_lha_mobile_homes_properties.py +++ b/policyengine_uk/tests/test_lha_mobile_homes_properties.py @@ -3,16 +3,16 @@ A local authority determines no maximum rent (LHA) where a Housing Benefit claim relates to rent for "a houseboat, caravan or mobile home which he occupies as his home" (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); Northern -Ireland: SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). It still pays Housing -Benefit toward those payments (reg 12(1); NI reg 13(1)), so the family stays -eligible. The DWP makes no such exception in Universal Credit (SI 2013/376 -Sch 4 Part 4) and still caps the housing element at the LHA. +Ireland: SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). Housing Benefit can +still meet those payments (reg 12(1); NI reg 13(1)), so the family stays +eligible where it rents. The DWP makes no such exception in Universal Credit +(SI 2013/376 Sch 4 Part 4), where a private renter's rent payments stay +subject to the LHA cap. The grid crosses five families, five tenures, five regions, two rents and two incomes: 500 families, none of whose rent includes meals. One simulation -holds each family three times: in a caravan, in another type of home (the -grid cycles through the six other known types), and in a home of unknown -type. +holds each family three times: in a caravan, in one other known type of home +(the grid cycles through the six by index), and in a home of unknown type. Invariants, for every family in the grid: diff --git a/policyengine_uk/variables/gov/dwp/LHA_eligible.py b/policyengine_uk/variables/gov/dwp/LHA_eligible.py index a809e694b2..1fb1fb0df8 100644 --- a/policyengine_uk/variables/gov/dwp/LHA_eligible.py +++ b/policyengine_uk/variables/gov/dwp/LHA_eligible.py @@ -6,10 +6,15 @@ class LHA_eligible(Variable): entity = BenUnit label = "Eligibility for Local Housing Allowance" documentation = ( - "Whether the local authority caps the benefit unit's Housing Benefit " - "eligible rent at the Local Housing Allowance: true where the benefit " - "unit rents, no member lives in social housing, and the household " - "doesn't live in a houseboat, caravan or mobile home." + "Whether the model takes the maximum rent (LHA) as the benefit unit's " + "Housing Benefit eligible rent (LHA_cap). By default this holds where " + "the benefit unit rents, no member lives in social housing, and the " + "household doesn't live in a houseboat, caravan or mobile home. " + "Otherwise housing_benefit_entitlement takes the rent less the " + "prescribed deduction for meals. The flag selects the eligible rent " + "only: housing_benefit_eligible reads the tenure, so a supplied value " + "takes a claim into or out of the LHA without deciding whether the " + "family can get Housing Benefit." ) definition_period = YEAR reference = ( @@ -27,15 +32,15 @@ def formula(benunit, period, parameters): # A local authority determines no maximum rent (LHA) where the claim # relates to rent for "a houseboat, caravan or mobile home which he # occupies as his home" (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); - # Northern Ireland: SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). For - # most of these claims it refers the rent to a rent officer and sets - # a maximum rent from the rent officer's determination (GB regs 14, - # 13 and 12C); in Northern Ireland the Housing Executive decides (NI - # regs 13B and 14). For an excluded tenancy, such as a pitch on a - # council's own caravan site, the eligible rent is the rent less - # ineligible charges (GB reg 12B and Sch 2). The model has no rent - # officer determination, so housing_benefit_entitlement takes the - # rent, less any charge for meals, as the eligible rent. + # Northern Ireland: SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). It + # normally refers the rent to a rent officer and sets a maximum rent + # from the rent officer's determination (GB regs 14, 13 and 12C); in + # Northern Ireland the Housing Executive decides (NI regs 15, 14 and + # 13B). The model has no such determination. Here + # housing_benefit_entitlement takes the rent less the prescribed + # deduction for meals, which can exceed the eligible rent in law. + # The household's accommodation type stands in for the dwelling each + # of its benefit units pays for. accommodation = benunit.value_from_first_person( benunit.members.household("accommodation_type", period) ) diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py index 63480d9e6f..a3f8e05077 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py @@ -114,13 +114,14 @@ def formula(benunit, period, parameters): # only Housing Benefit pays it. accommodation = benunit("in_specified_or_temporary_accommodation", period) social = benunit.any(person("in_social_housing", period)) - # Social and private renters both qualify. A local authority - # determines no maximum rent (LHA) for a private renter of a - # houseboat, caravan or mobile home (SI 2006/213 and SI 2006/214 reg - # 13C(5)(d)(i); NI: SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)) but - # still pays Housing Benefit toward the rent, mooring charges and - # site payments (reg 12(1); NI reg 13(1)), so eligibility reads - # benunit_is_renting rather than LHA_eligible. + # The tenure test: social and private renters both pass it. A local + # authority determines no maximum rent (LHA) for a private renter of + # a houseboat, caravan or mobile home (SI 2006/213 and SI 2006/214 + # reg 13C(5)(d)(i); NI: SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)), + # and Housing Benefit can still meet the rent, mooring charges and + # site payments (reg 12(1); NI reg 13(1)). So this test reads + # benunit_is_renting, not LHA_eligible, and a supplied LHA_eligible + # changes the eligible rent without changing eligibility. renting = benunit("benunit_is_renting", period) pension_age_regulations = benunit( "housing_benefit_pension_age_regulations_apply", period From aa2a22b3f942c168f11f9fc190ade4f02e9d564d Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Fri, 20 Nov 2026 18:24:18 +0000 Subject: [PATCH 4/5] Answer review round 2: the eligible rent outside the LHA, the flag's two branches, the tenure gate - The docs paragraph and the LHA_eligible comment say what a council does for a rent allowance outside the LHA: in Great Britain it normally uses a rent officer's determination (regs 14 and 13), in Northern Ireland the Housing Executive decides (NI regs 15 and 14), and the eligible rent starts from the resulting maximum rent, subject to adjustments (reg 12C; NI reg 13B). Where the residual rule applies, reg 12B (NI reg 13A) starts from the payments the claimant is liable for. - LHA_eligible's documentation gives both branches: when true, housing_benefit_entitlement uses LHA_cap; otherwise it uses max(0, benunit_rent - housing_benefit_meals_deduction). The default reads the household's recorded accommodation type, and an unknown type keeps the flag. The model has no rent officer's rent amount. - The docs' eligibility summary gives the tenure gate as the formula has it: the benunit rents, or a member is in social housing. Two passages that said the model had no specified or temporary accommodation route now agree with the summary. - Both couple cases supply social housing statuses of [false, true], so a formula that read only the first member would fail them. Case names and comments say what each case asserts. - test_housing_benefit_pension_age_properties.py no longer computes a social housing value it doesn't read. No formula changes. Nine mutants fail these tests; the two new ones read only the first member's social housing status in each formula. Co-Authored-By: Claude Fable 5.2 --- changelog.d/2928.fixed.md | 2 +- .../programs/gov/dwp/housing-benefit.ipynb | 10 ++--- .../housing_benefit_eligible.yaml | 14 ++++--- .../housing_benefit/lha_mobile_homes.yaml | 35 +++++++++--------- ..._housing_benefit_pension_age_properties.py | 3 -- .../tests/test_lha_mobile_homes_properties.py | 4 +- .../variables/gov/dwp/LHA_eligible.py | 37 ++++++++++--------- .../housing_benefit_eligible.py | 2 +- 8 files changed, 54 insertions(+), 53 deletions(-) diff --git a/changelog.d/2928.fixed.md b/changelog.d/2928.fixed.md index 899cc6d47d..82f2477808 100644 --- a/changelog.d/2928.fixed.md +++ b/changelog.d/2928.fixed.md @@ -1 +1 @@ -The model now takes the rent, less the prescribed deduction for meals, as the Housing Benefit eligible rent of a private renter in a houseboat, caravan or mobile home, instead of capping it at the Local Housing Allowance (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). By default `LHA_eligible` returns false where `accommodation_type` is `MOBILE`. `housing_benefit_eligible` reads `benunit_is_renting` in place of `LHA_eligible`, so these families stay eligible, and a supplied `LHA_eligible` now changes the eligible rent without changing eligibility. The model has no rent officer determination, so it can overstate their Housing Benefit. +The model now takes the rent, less the prescribed deduction for meals, as the Housing Benefit eligible rent of a private renter in a houseboat, caravan or mobile home, instead of capping it at the Local Housing Allowance (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). By default `LHA_eligible` returns false where the household's recorded `accommodation_type` is `MOBILE`. `housing_benefit_eligible` reads `benunit_is_renting` in place of `LHA_eligible`, so these families stay eligible, and a supplied `LHA_eligible` now selects the eligible-rent calculation without changing eligibility. The model has no rent officer's rent amount, so it can overstate their Housing Benefit. diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index 978a2c9068..5b9d55e148 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -19,7 +19,7 @@ "source": [ "## Eligibility\n", "\n", - "`housing_benefit_eligible` requires the benunit to **rent** its home, from a social landlord or privately, with assessable capital at or below the working-age (or pension-age) capital limit, and to reach Housing Benefit by one of three routes:\n", + "`housing_benefit_eligible` requires the benunit to **rent** its home (`benunit_is_renting`) or to have a member in **social housing** (`in_social_housing`), with assessable capital at or below the working-age (or pension-age) capital limit, and to reach Housing Benefit by one of three routes:\n", "\n", "- **Pension age**: the claimant and any partner have reached the qualifying age for State Pension Credit (State Pension age), or the family is a mixed-age couple that keeps the pension-age route: one entitled to Pension Credit or pension-age Housing Benefit on 14 May 2019 and ever since ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4)), or any mixed-age couple not reported on Universal Credit before 15 May 2019 (`meets_pension_credit_age_conditions`). New Housing Benefit claims are open to them ([SI 2014/1230 reg. 6A(4) and (5)](https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A)), and Universal Credit is not, so neither a previous claim nor `would_claim_uc` matters.\n", "- **Specified or temporary accommodation**: `in_specified_or_temporary_accommodation` is a boolean benunit input, defaulting to `False`. When supplied as `True`, it permits new Housing Benefit claims without a reported previous award, under [SI 2014/1230 reg. 6A(2)](https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A) and [SR 2016/226 reg. 4A(2)](https://www.legislation.gov.uk/nisr/2016/226/regulation/4A). The input refers to the statutory definitions: [GB specified accommodation](https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/3A) and [temporary accommodation](https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/3B), and their [NI specified](https://www.legislation.gov.uk/nisr/2016/216/schedule/1/paragraph/4) and [temporary](https://www.legislation.gov.uk/nisr/2016/216/schedule/1/paragraph/4A) equivalents. It is not inferred from tenure or a general supported-housing label.\n", @@ -33,7 +33,7 @@ "- The award continues where the claimant's circumstances fall within [SI 2014/1230 reg. 6A(2) to (5)](https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A): specified or temporary accommodation; a single claimant who has reached the qualifying age for State Pension Credit, or a couple or polygamous marriage in which every member has; a claim that reg. 6A(3) allows when a Universal Credit claimant reaches that age; or a mixed-age couple whose older member claims and keeps a saving under SI 2019/37 art. 4(1) (art. 7(4)(a)).\n", "- The award continues where, immediately before 1 July 2026, the claimant has an income-related Employment and Support Allowance award that [art. 3A(2)](https://www.legislation.gov.uk/uksi/2025/1148/article/3A) saves: at that time someone acts for the claimant as an appointee under reg. 57 of the Universal Credit, Personal Independence Payment, Jobseeker's Allowance and Employment and Support Allowance (Claims and Payments) Regulations 2013, or in the six months ending on that day the Secretary of State determined that the claimant would likely need one (art. 7(4)(b)).\n", "\n", - "PolicyEngine does not yet model the 1 July 2026 end date: no rule in the model ends a working-age family's continuing award on that date. It also doesn't model claims for specified or temporary accommodation, which reg. 6A(2) keeps open at any age.\n", + "PolicyEngine does not yet model the 1 July 2026 end date: no rule in the model ends a working-age family's continuing award on that date.\n", "\n", "**Guarantee Credit passport.** If the claimant or partner is in receipt of a guarantee credit (`in_receipt_of_guarantee_credit`: the benunit is eligible for Pension Credit, claims it, and its guarantee credit is positive, so the Pension Credit paid includes a guarantee credit), the whole of their capital and income is disregarded ([SI 2006/214 reg. 26](https://www.legislation.gov.uk/uksi/2006/214/regulation/26); Northern Ireland: [SR 2006/406 reg. 24](https://www.legislation.gov.uk/nisr/2006/406/regulation/24)). `housing_benefit_assessable_capital`, `housing_benefit_tariff_income` and `housing_benefit_applicable_income` are then zero, so the capital limit cannot bite and no income is tapered. A guarantee credit computed for a family that does not claim Pension Credit (`would_claim_pc`), or that PolicyEngine does not treat as eligible for it (`is_pension_credit_eligible`), does not count. The passport applies within the pension-age regulations (`housing_benefit_pension_age_regulations_apply`). `is_pension_credit_eligible` retains mixed-age couples covered by the [SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4) saving through `meets_pension_credit_age_conditions`; these couples keep the passport when they receive Guarantee Credit. When Pension Credit is frozen, receipt follows the baseline award, including its Guarantee Credit component. Savings Credit alone follows the separate assessment in [reg. 27](https://www.legislation.gov.uk/uksi/2006/214/regulation/27), including its capital limit, and does not give this passport.\n", "\n", @@ -49,15 +49,15 @@ "\n", "The award is computed in four stages:\n", "\n", - "1. **Eligible rent**: the rent the benunit is liable for (`benunit_rent`). Where the Local Housing Allowance applies (`LHA_eligible`: renting, no member in social housing, and a home other than a houseboat, caravan or mobile home), the eligible rent is the maximum rent (LHA), which is the LHA rate for the Housing Benefit category of dwelling (`housing_benefit_LHA_category`: the shared accommodation rate for a young individual with no non-dependant, or a claimant entitled to one bedroom who lacks exclusive use of self-contained accommodation, unless the severe disability premium applies, reg 13D(2)) or, where the rent is lower, the rent (`LHA_cap`; SI 2006/213 regs [12D(2)(a)](https://www.legislation.gov.uk/uksi/2006/213/regulation/12D) and [13D(5)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13D)).\n", + "1. **Eligible rent**: the rent the benunit is liable for (`benunit_rent`). Where the Local Housing Allowance applies (`LHA_eligible`: by default, renting, no member in social housing, and a household whose recorded `accommodation_type` isn't `MOBILE`, so an unknown type keeps the LHA), the eligible rent is the maximum rent (LHA), which is the LHA rate for the Housing Benefit category of dwelling (`housing_benefit_LHA_category`: the shared accommodation rate for a young individual with no non-dependant, or a claimant entitled to one bedroom who lacks exclusive use of self-contained accommodation, unless the severe disability premium applies, reg 13D(2)) or, where the rent is lower, the rent (`LHA_cap`; SI 2006/213 regs [12D(2)(a)](https://www.legislation.gov.uk/uksi/2006/213/regulation/12D) and [13D(5)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13D)).\n", "2. **Applicable amount** (`housing_benefit_applicable_amount`): a personal allowance derived from the benunit's composition (single, couple, lone parent) and age, plus any disability/carer premiums. This is the \"minimum income\" the household needs before HB tapers begin.\n", "3. **Means test** (`housing_benefit_entitlement`): the appropriate maximum Housing Benefit is the eligible rent less `housing_benefit_non_dep_deductions` for any non-dependant adults living in the household ([reg. 70](https://www.legislation.gov.uk/uksi/2006/213/regulation/70)). Under reg 74 (SI 2006/214 reg 55), for a non-dependant aged 18 or over in remunerative work (16 hours a week or more) the council deducts the amount for the band containing their normal gross weekly income, counting a couple's joint income and including each band's lower edge; for one not in remunerative work it deducts the lowest amount. It makes one deduction for a couple, the higher. Councils make no deduction for full-time students, State Pension Credit recipients, or under-25s on Income Support, income-based JSA or Universal Credit without earned income, and none for any non-dependant if the claimant or partner is blind or receives Attendance Allowance, the DLA care component, the PIP daily living component or Armed Forces Independence Payment. The published `withdrawal_rate` (currently 0.65) of the benunit's `housing_benefit_applicable_income` in excess of the applicable amount is deducted from that maximum ([SSCBA 1992 s. 130(3)(b)](https://www.legislation.gov.uk/ukpga/1992/4/section/130), [reg. 71](https://www.legislation.gov.uk/uksi/2006/213/regulation/71)). Because the LHA caps the eligible rent, the taper comes off the LHA: a private tenant with rent above the LHA and income above the applicable amount receives the LHA less the taper, not the lower of the LHA and the rent less the taper. The pension-age regulations (SI 2006/214) have the same rules at regs 12D, 13D, 50 and 51, and the Northern Ireland regulations at SR 2006/405 regs 13C, 14D, 68 and 69 and SR 2006/406 regs 13C, 14D, 48 and 49. Applicable income counts earnings, pensions and benefits net of the income tax and National Insurance on them. Income derived from capital (rent from property, interest and dividends) is not income: regulation 46(4) of the Housing Benefit Regulations 2006 treats it as capital, and Schedule 5 paragraph 22 of the pension-age regulations disregards it. The capital counts instead through `housing_benefit_tariff_income` and the capital limit. Rent for letting part of the home is the exception: it counts, less £20 a week per occupier.\n", - " If the claimant or partner is on Universal Credit, Income Support, income-based Jobseeker's Allowance or income-related Employment and Support Allowance (`housing_benefit_on_passporting_benefit`), the whole of the family's earnings, other income and capital is disregarded ([SI 2006/213 Sch. 4 para. 12](https://www.legislation.gov.uk/uksi/2006/213/schedule/4/paragraph/12), [Sch. 5 para. 4](https://www.legislation.gov.uk/uksi/2006/213/schedule/5/paragraph/4) and [Sch. 6 para. 5](https://www.legislation.gov.uk/uksi/2006/213/schedule/6/paragraph/5); Northern Ireland: [SR 2006/405 Sch. 5 para. 12](https://www.legislation.gov.uk/nisr/2006/405/schedule/5/paragraph/12), [Sch. 6 para. 4](https://www.legislation.gov.uk/nisr/2006/405/schedule/6/paragraph/4) and [Sch. 7 para. 5](https://www.legislation.gov.uk/nisr/2006/405/schedule/7/paragraph/5)). `housing_benefit_applicable_income` and `housing_benefit_assessable_capital` are then zero, so the award is that maximum. This applies at any age: a mixed-age couple whose younger member is on one of these benefits is assessed under the working-age regulations ([SI 2006/213 reg. 5(1)(b)](https://www.legislation.gov.uk/uksi/2006/213/regulation/5)). Income Support, income-based Jobseeker's Allowance and income-related Employment and Support Allowance count when a positive amount is paid on the claimant's or partner's award (`in_receipt_of_income_support_jsa_ib_or_esa_ir`, which reads `claimant_or_partner_jsa_income` and `claimant_or_partner_esa_income`). Another member's own award, such as a non-dependant's, is payable to them and does not passport the claimant. A person is on Universal Credit on any day they are entitled to it, whether it is in payment or not ([reg. 2(3B)](https://www.legislation.gov.uk/uksi/2006/213/regulation/2)); PolicyEngine reads that as Universal Credit above nil before the benefit cap and deductions (`is_uc_entitled`), for a family that claims it, so the passport adds no circular dependency through the benefit cap. The universal credit limb applies from 28 October 2013 in Great Britain and 8 May 2018 in Northern Ireland (`gov.dwp.housing_benefit.means_test.universal_credit_passport`). It matters only where Housing Benefit is paid alongside Universal Credit, for specified or temporary accommodation, which the eligibility rules above do not yet model.\n", + " If the claimant or partner is on Universal Credit, Income Support, income-based Jobseeker's Allowance or income-related Employment and Support Allowance (`housing_benefit_on_passporting_benefit`), the whole of the family's earnings, other income and capital is disregarded ([SI 2006/213 Sch. 4 para. 12](https://www.legislation.gov.uk/uksi/2006/213/schedule/4/paragraph/12), [Sch. 5 para. 4](https://www.legislation.gov.uk/uksi/2006/213/schedule/5/paragraph/4) and [Sch. 6 para. 5](https://www.legislation.gov.uk/uksi/2006/213/schedule/6/paragraph/5); Northern Ireland: [SR 2006/405 Sch. 5 para. 12](https://www.legislation.gov.uk/nisr/2006/405/schedule/5/paragraph/12), [Sch. 6 para. 4](https://www.legislation.gov.uk/nisr/2006/405/schedule/6/paragraph/4) and [Sch. 7 para. 5](https://www.legislation.gov.uk/nisr/2006/405/schedule/7/paragraph/5)). `housing_benefit_applicable_income` and `housing_benefit_assessable_capital` are then zero, so the award is that maximum. This applies at any age: a mixed-age couple whose younger member is on one of these benefits is assessed under the working-age regulations ([SI 2006/213 reg. 5(1)(b)](https://www.legislation.gov.uk/uksi/2006/213/regulation/5)). Income Support, income-based Jobseeker's Allowance and income-related Employment and Support Allowance count when a positive amount is paid on the claimant's or partner's award (`in_receipt_of_income_support_jsa_ib_or_esa_ir`, which reads `claimant_or_partner_jsa_income` and `claimant_or_partner_esa_income`). Another member's own award, such as a non-dependant's, is payable to them and does not passport the claimant. A person is on Universal Credit on any day they are entitled to it, whether it is in payment or not ([reg. 2(3B)](https://www.legislation.gov.uk/uksi/2006/213/regulation/2)); PolicyEngine reads that as Universal Credit above nil before the benefit cap and deductions (`is_uc_entitled`), for a family that claims it, so the passport adds no circular dependency through the benefit cap. The universal credit limb applies from 28 October 2013 in Great Britain and 8 May 2018 in Northern Ireland (`gov.dwp.housing_benefit.means_test.universal_credit_passport`). It matters only where Housing Benefit is paid alongside Universal Credit, for specified or temporary accommodation (`in_specified_or_temporary_accommodation`, above).\n", "4. **Benefit cap** (`housing_benefit`): the post-means-test award is finally reduced by `housing_benefit_benefit_cap_reduction`, the excess of the family's welfare benefits over the Housing Benefit cap (`housing_benefit_benefit_cap`, SI 2006/213 reg 75CA), leaving at least 50 pence a week (reg 75D). The cap does not apply where the claimant or couple is entitled to working tax credit (reg 75E), the claimant or partner receives a benefit listed in reg 75F, or the claim is under the pension-age regulations (reg 5). Universal Credit has its own cap.\n", "\n", "The take-up gate (`would_claim_housing_benefit`) is applied inside `housing_benefit_pre_benefit_cap`.\n", "\n", - "**Houseboats, caravans and mobile homes.** The council determines no maximum rent (LHA) where the rent is for a houseboat, caravan or mobile home the claimant occupies as their home ([SI 2006/213 reg. 13C(5)(d)(i)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13C)); [SI 2006/214 reg. 13C(5)(d)(i)](https://www.legislation.gov.uk/uksi/2006/214/regulation/13C) and, for Northern Ireland, [SR 2006/405](https://www.legislation.gov.uk/nisr/2006/405/regulation/14C) and [SR 2006/406 reg. 14C(5)(d)(i)](https://www.legislation.gov.uk/nisr/2006/406/regulation/14C) carry the same exclusion. By default PolicyEngine sets `LHA_eligible` to false where `accommodation_type` is `MOBILE`, and `housing_benefit_entitlement` then takes `benunit_rent` less `housing_benefit_meals_deduction` as the eligible rent. Housing Benefit can still meet the rent or licence fee, mooring charges and site payments ([reg. 12(1)(a), (b), (f) and (g)](https://www.legislation.gov.uk/uksi/2006/213/regulation/12)), subject to the other conditions of an award, so `housing_benefit_eligible` reads `benunit_is_renting` and these families stay eligible where they rent. PolicyEngine doesn't model an owner-occupier's mooring charges or site payments. A supplied `LHA_eligible` selects the eligible rent only, so a user can take another claim outside the LHA, such as a hostel, without changing its eligibility. For these claims the council normally refers the rent to a rent officer ([reg. 14](https://www.legislation.gov.uk/uksi/2006/213/regulation/14)) and sets a maximum rent from the rent officer's determination ([reg. 13](https://www.legislation.gov.uk/uksi/2006/213/regulation/13)), which becomes the eligible rent ([reg. 12C](https://www.legislation.gov.uk/uksi/2006/213/regulation/12C)); in Northern Ireland the Housing Executive decides ([SR 2006/405 regs. 15](https://www.legislation.gov.uk/nisr/2006/405/regulation/15), [14](https://www.legislation.gov.uk/nisr/2006/405/regulation/14) and [13B](https://www.legislation.gov.uk/nisr/2006/405/regulation/13B)). That maximum can fall below the rent, for example to the single room rent for some single claimants under 35 on the working-age regulations. Where no maximum rent applies, the council starts from the payments the claimant is liable for and takes off ineligible charges ([reg. 12B](https://www.legislation.gov.uk/uksi/2006/213/regulation/12B)). PolicyEngine has no rent officer determination and deducts only the prescribed charge for meals, so it can overstate Housing Benefit for these families. The DWP makes no such exception in Universal Credit: a private renter's rent payments stay subject to the LHA cap whatever the home ([SI 2013/376 Sch. 4 paras. 20, 22 and 25](https://www.legislation.gov.uk/uksi/2013/376/schedule/4)), and they include mooring charges and site payments ([Sch. 1 para. 2](https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/2))." + "**Houseboats, caravans and mobile homes.** The council determines no maximum rent (LHA) where the rent is for a houseboat, caravan or mobile home the claimant occupies as their home ([SI 2006/213 reg. 13C(5)(d)(i)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13C)); [SI 2006/214 reg. 13C(5)(d)(i)](https://www.legislation.gov.uk/uksi/2006/214/regulation/13C) and, for Northern Ireland, [SR 2006/405](https://www.legislation.gov.uk/nisr/2006/405/regulation/14C) and [SR 2006/406 reg. 14C(5)(d)(i)](https://www.legislation.gov.uk/nisr/2006/406/regulation/14C) carry the same exclusion. By default PolicyEngine sets `LHA_eligible` to false where the household's recorded `accommodation_type` is `MOBILE`; an unknown type keeps the LHA. When `LHA_eligible` is true, `housing_benefit_entitlement` uses `LHA_cap`; otherwise it uses `max(0, benunit_rent - housing_benefit_meals_deduction)`. Housing Benefit can still meet the rent or licence fee, mooring charges and site payments ([reg. 12(1)(a), (b), (f) and (g)](https://www.legislation.gov.uk/uksi/2006/213/regulation/12)), subject to the other conditions of an award, so `housing_benefit_eligible` reads `benunit_is_renting` and these families stay eligible where they rent. PolicyEngine doesn't model an owner-occupier's mooring charges or site payments. A supplied `LHA_eligible` selects the eligible-rent calculation independently of `housing_benefit_eligible`, so a user can take another claim outside the LHA, such as a hostel, without changing its eligibility. For a rent allowance outside the LHA, a council in Great Britain normally uses a rent officer's determination ([regs. 14](https://www.legislation.gov.uk/uksi/2006/213/regulation/14) and [13](https://www.legislation.gov.uk/uksi/2006/213/regulation/13)), and in Northern Ireland the Housing Executive decides ([SR 2006/405 regs. 15](https://www.legislation.gov.uk/nisr/2006/405/regulation/15) and [14](https://www.legislation.gov.uk/nisr/2006/405/regulation/14)). The eligible rent starts from the resulting maximum rent, subject to adjustments ([reg. 12C](https://www.legislation.gov.uk/uksi/2006/213/regulation/12C); NI [reg. 13B](https://www.legislation.gov.uk/nisr/2006/405/regulation/13B)). That maximum can fall below the rent, for example to the single room rent for some single claimants under 35 on the working-age regulations. Where the residual rule applies instead, the council starts from the payments the claimant is liable for and makes deductions, apportionment and reasonableness adjustments ([reg. 12B](https://www.legislation.gov.uk/uksi/2006/213/regulation/12B); NI [reg. 13A](https://www.legislation.gov.uk/nisr/2006/405/regulation/13A)). PolicyEngine has no rent officer's rent amount and deducts only the prescribed charge for meals, so it can overstate Housing Benefit for these families. The DWP makes no such exception in Universal Credit: qualifying private-sector rent payments, which include mooring charges and site payments ([SI 2013/376 Sch. 1 para. 2](https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/2)), stay subject to the LHA cap whatever the home ([Sch. 4 paras. 20, 22 and 25](https://www.legislation.gov.uk/uksi/2013/376/schedule/4))." ] }, { diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml index b8077dc7ce..a8c822ba5d 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml @@ -22,11 +22,11 @@ people: adult: age: 40 - in_social_housing: true + in_social_housing: false housing_benefit_reported: 1 partner: age: 40 - in_social_housing: false + in_social_housing: true benunits: benunit: members: [adult, partner] @@ -68,10 +68,11 @@ output: housing_benefit_eligible: false -- name: Private renter of a caravan keeps a continuing award outside the LHA +- name: Private renter of a caravan with a reported award passes the eligibility gate outside the LHA # A local authority determines no maximum rent (LHA) for a houseboat, # caravan or mobile home (SI 2006/213 reg 13C(5)(d)(i)), and Housing - # Benefit can still meet the rent (reg 12(1)), so the award continues. + # Benefit can still meet the rent (reg 12(1)), so the family passes the + # eligibility gate. period: 2021 input: would_claim_uc: false # continuing award route: not claiming Universal Credit @@ -82,8 +83,9 @@ LHA_eligible: false housing_benefit_eligible: true -- name: A supplied LHA_eligible of false doesn't end a private renter's continuing award - # The flag selects the eligible rent only; the tenure decides eligibility. +- name: A supplied LHA_eligible of false leaves a private renter with a reported award eligible + # The flag selects the eligible-rent calculation; the tenure decides + # eligibility. period: 2021 input: would_claim_uc: false # continuing award route: not claiming Universal Credit diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/lha_mobile_homes.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/lha_mobile_homes.yaml index 122cce4925..b11adc0db6 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/lha_mobile_homes.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/lha_mobile_homes.yaml @@ -31,8 +31,9 @@ LHA_eligible: true - name: The LHA doesn't apply to a housing association tenant in a caravan - # A local authority determines no LHA for a housing association tenant, - # whatever the home (reg 13C(5)(a)). + # The model counts a housing association tenant as in social housing, which + # stays outside the LHA whatever the home. Reg 13C(5)(a) names registered + # social landlords and registered providers of social housing. period: 2025 input: tenure_type: RENT_FROM_HA @@ -75,7 +76,7 @@ LHA_eligible: false housing_benefit_eligible: true -- name: A private renter aged 25 with a continuing award keeps it outside the LHA in a caravan +- name: A private renter aged 25 with a reported award passes the eligibility gate outside the LHA in a caravan # Reg 13C(5)(d)(i) has no age condition. period: 2025 input: @@ -95,10 +96,10 @@ people: adult: age: 70 - in_social_housing: true + in_social_housing: false partner: age: 70 - in_social_housing: false + in_social_housing: true benunits: benunit: members: [adult, partner] @@ -111,10 +112,10 @@ LHA_eligible: false housing_benefit_eligible: true -- name: A pension-age lodger in an owner-occupied caravan gets Housing Benefit for the whole rent +- name: The model awards a pension-age lodger in an owner-occupied caravan the whole rent # The lodger pays the householder to live in the caravan and occupies it as # their home, so reg 13C(5)(d)(i) covers the lodger's claim. With no income, - # the award equals the rent of 5,200. + # the model awards the rent of 5,200. period: 2025 absolute_error_margin: 0.01 input: @@ -291,8 +292,8 @@ housing_benefit_entitlement: 9_467.64 - name: A supplied LHA_eligible of false takes a flat renter's rent as the eligible rent - # The flag selects the eligible rent only, so a user can take another claim - # outside the LHA, such as a hostel (reg 13C(5)(d)(ii)). + # The flag selects the eligible-rent calculation, so a user can take another + # claim outside the LHA, such as a hostel (reg 13C(5)(d)(ii)). period: 2025 absolute_error_margin: 0.01 input: @@ -309,9 +310,9 @@ housing_benefit_eligible: true housing_benefit_entitlement: 10_400 -- name: Pension-age caravan renter with no income receives the full rent - # The model computes every step. With no income, the award equals the rent - # of 7,800, though the rent exceeds the one-bedroom LHA rate of 5,864.04 in +- name: The model awards a pension-age caravan renter with no income the full rent + # The model computes every step. With no income, it awards the rent of + # 7,800, though the rent exceeds the one-bedroom LHA rate of 5,864.04 in # Tyneside, where the model places a North East household. period: 2025 absolute_error_margin: 0.01 @@ -345,11 +346,11 @@ # The DWP makes no such exception in Universal Credit. It counts mooring # charges and caravan or mobile home site payments as rent payments (SI -# 2013/376 Sch 1 para 2(c) and (d)), and rent payments to a landlord who isn't -# a provider of social housing stay subject to the LHA cap, whatever the home -# (Sch 4 paras 20(1), 22 and 25(2)). +# 2013/376 Sch 1 para 2(c) and (d)), and qualifying private-sector rent +# payments within the Universal Credit calculation stay subject to the LHA +# cap, whatever the home (Sch 4 paras 20(1), 22 and 25(2)). -- name: Universal Credit caps a caravan renter at the LHA +- name: Universal Credit's housing costs element caps a caravan renter's rent at the LHA period: 2025 input: tenure_type: RENT_PRIVATELY @@ -360,7 +361,7 @@ output: uc_housing_costs_element: 6_000 -- name: Universal Credit pays a housing association caravan tenant's rent +- name: Universal Credit's housing costs element covers a housing association caravan tenant's rent # The DWP calculates a social renter's housing costs under Sch 4 Part 5, # with no LHA cap. period: 2025 diff --git a/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py b/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py index e10cc7cbf8..46198253c1 100644 --- a/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py +++ b/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py @@ -150,9 +150,6 @@ def situation(units, claims_all=None, flip_would_claim_uc=False, pension_bump=0. def calculate(units, **kwargs): sim = Simulation(situation=situation(units, **kwargs)) values = {v: np.asarray(sim.calculate(v, YEAR)) for v in VARIABLES} - values["social"] = ( - np.asarray(sim.calculate("in_social_housing", YEAR, map_to="benunit")) > 0 - ) values["renting"] = np.array([unit["tenure"].startswith("RENT_") for unit in units]) capital = sim.tax_benefit_system.parameters( YEAR diff --git a/policyengine_uk/tests/test_lha_mobile_homes_properties.py b/policyengine_uk/tests/test_lha_mobile_homes_properties.py index 30301955b4..05e17c7c68 100644 --- a/policyengine_uk/tests/test_lha_mobile_homes_properties.py +++ b/policyengine_uk/tests/test_lha_mobile_homes_properties.py @@ -6,8 +6,8 @@ Ireland: SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). Housing Benefit can still meet those payments (reg 12(1); NI reg 13(1)), so the family stays eligible where it rents. The DWP makes no such exception in Universal Credit -(SI 2013/376 Sch 4 Part 4), where a private renter's rent payments stay -subject to the LHA cap. +(SI 2013/376 Sch 4 Part 4), where qualifying private-sector rent payments +stay subject to the LHA cap. The grid crosses five families, five tenures, five regions, two rents and two incomes: 500 families, none of whose rent includes meals. One simulation diff --git a/policyengine_uk/variables/gov/dwp/LHA_eligible.py b/policyengine_uk/variables/gov/dwp/LHA_eligible.py index 1fb1fb0df8..d8d1a1ad11 100644 --- a/policyengine_uk/variables/gov/dwp/LHA_eligible.py +++ b/policyengine_uk/variables/gov/dwp/LHA_eligible.py @@ -6,15 +6,14 @@ class LHA_eligible(Variable): entity = BenUnit label = "Eligibility for Local Housing Allowance" documentation = ( - "Whether the model takes the maximum rent (LHA) as the benefit unit's " - "Housing Benefit eligible rent (LHA_cap). By default this holds where " - "the benefit unit rents, no member lives in social housing, and the " - "household doesn't live in a houseboat, caravan or mobile home. " - "Otherwise housing_benefit_entitlement takes the rent less the " - "prescribed deduction for meals. The flag selects the eligible rent " - "only: housing_benefit_eligible reads the tenure, so a supplied value " - "takes a claim into or out of the LHA without deciding whether the " - "family can get Housing Benefit." + "Selects the Housing Benefit eligible-rent calculation. When true, " + "housing_benefit_entitlement uses LHA_cap. Otherwise it uses " + "max(0, benunit_rent - housing_benefit_meals_deduction). By default " + "the flag holds where the benefit unit rents, no member lives in " + "social housing, and the household's recorded accommodation type " + "isn't a houseboat, caravan or mobile home; an unknown type keeps " + "the flag. A supplied value selects the model's eligible-rent " + "calculation independently of housing_benefit_eligible." ) definition_period = YEAR reference = ( @@ -32,15 +31,17 @@ def formula(benunit, period, parameters): # A local authority determines no maximum rent (LHA) where the claim # relates to rent for "a houseboat, caravan or mobile home which he # occupies as his home" (SI 2006/213 and SI 2006/214 reg 13C(5)(d)(i); - # Northern Ireland: SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). It - # normally refers the rent to a rent officer and sets a maximum rent - # from the rent officer's determination (GB regs 14, 13 and 12C); in - # Northern Ireland the Housing Executive decides (NI regs 15, 14 and - # 13B). The model has no such determination. Here - # housing_benefit_entitlement takes the rent less the prescribed - # deduction for meals, which can exceed the eligible rent in law. - # The household's accommodation type stands in for the dwelling each - # of its benefit units pays for. + # Northern Ireland: SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i)). For + # a rent allowance outside the LHA, a council in Great Britain + # normally uses a rent officer's determination (regs 14 and 13), and + # in Northern Ireland the Housing Executive decides (NI regs 15 and + # 14). The eligible rent starts from the resulting maximum rent, + # subject to adjustments (reg 12C; NI reg 13B). The model has no rent + # officer's rent amount. Outside the LHA, housing_benefit_entitlement + # uses max(0, benunit_rent - housing_benefit_meals_deduction), which + # can exceed the eligible rent in law. The household's recorded + # accommodation type stands in for the dwelling each of its benefit + # units pays for. accommodation = benunit.value_from_first_person( benunit.members.household("accommodation_type", period) ) diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py index a3f8e05077..e8e95df486 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py @@ -121,7 +121,7 @@ def formula(benunit, period, parameters): # and Housing Benefit can still meet the rent, mooring charges and # site payments (reg 12(1); NI reg 13(1)). So this test reads # benunit_is_renting, not LHA_eligible, and a supplied LHA_eligible - # changes the eligible rent without changing eligibility. + # selects the eligible-rent calculation without changing eligibility. renting = benunit("benunit_is_renting", period) pension_age_regulations = benunit( "housing_benefit_pension_age_regulations_apply", period From 8aa2ef474da8852bfe0689dffd4a1cb5e66fcffe Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Fri, 20 Nov 2026 18:36:08 +0000 Subject: [PATCH 5/5] Say what an unknown accommodation type does, and name Northern Ireland's Housing Executive An unknown accommodation type leaves LHA_eligible's default to the renting and social housing checks; the documentation string and the docs said it "keeps the LHA". The docs sentence on the residual rule (reg 12B; NI reg 13A) names the Housing Executive beside the council. Co-Authored-By: Claude Fable 5.2 --- docs/book/programs/gov/dwp/housing-benefit.ipynb | 4 ++-- policyengine_uk/variables/gov/dwp/LHA_eligible.py | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index 5b9d55e148..9c1467defa 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -49,7 +49,7 @@ "\n", "The award is computed in four stages:\n", "\n", - "1. **Eligible rent**: the rent the benunit is liable for (`benunit_rent`). Where the Local Housing Allowance applies (`LHA_eligible`: by default, renting, no member in social housing, and a household whose recorded `accommodation_type` isn't `MOBILE`, so an unknown type keeps the LHA), the eligible rent is the maximum rent (LHA), which is the LHA rate for the Housing Benefit category of dwelling (`housing_benefit_LHA_category`: the shared accommodation rate for a young individual with no non-dependant, or a claimant entitled to one bedroom who lacks exclusive use of self-contained accommodation, unless the severe disability premium applies, reg 13D(2)) or, where the rent is lower, the rent (`LHA_cap`; SI 2006/213 regs [12D(2)(a)](https://www.legislation.gov.uk/uksi/2006/213/regulation/12D) and [13D(5)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13D)).\n", + "1. **Eligible rent**: the rent the benunit is liable for (`benunit_rent`). Where the Local Housing Allowance applies (`LHA_eligible`: by default, renting, no member in social housing, and a household whose recorded `accommodation_type` isn't `MOBILE`; an unknown type leaves the flag to the first two checks), the eligible rent is the maximum rent (LHA), which is the LHA rate for the Housing Benefit category of dwelling (`housing_benefit_LHA_category`: the shared accommodation rate for a young individual with no non-dependant, or a claimant entitled to one bedroom who lacks exclusive use of self-contained accommodation, unless the severe disability premium applies, reg 13D(2)) or, where the rent is lower, the rent (`LHA_cap`; SI 2006/213 regs [12D(2)(a)](https://www.legislation.gov.uk/uksi/2006/213/regulation/12D) and [13D(5)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13D)).\n", "2. **Applicable amount** (`housing_benefit_applicable_amount`): a personal allowance derived from the benunit's composition (single, couple, lone parent) and age, plus any disability/carer premiums. This is the \"minimum income\" the household needs before HB tapers begin.\n", "3. **Means test** (`housing_benefit_entitlement`): the appropriate maximum Housing Benefit is the eligible rent less `housing_benefit_non_dep_deductions` for any non-dependant adults living in the household ([reg. 70](https://www.legislation.gov.uk/uksi/2006/213/regulation/70)). Under reg 74 (SI 2006/214 reg 55), for a non-dependant aged 18 or over in remunerative work (16 hours a week or more) the council deducts the amount for the band containing their normal gross weekly income, counting a couple's joint income and including each band's lower edge; for one not in remunerative work it deducts the lowest amount. It makes one deduction for a couple, the higher. Councils make no deduction for full-time students, State Pension Credit recipients, or under-25s on Income Support, income-based JSA or Universal Credit without earned income, and none for any non-dependant if the claimant or partner is blind or receives Attendance Allowance, the DLA care component, the PIP daily living component or Armed Forces Independence Payment. The published `withdrawal_rate` (currently 0.65) of the benunit's `housing_benefit_applicable_income` in excess of the applicable amount is deducted from that maximum ([SSCBA 1992 s. 130(3)(b)](https://www.legislation.gov.uk/ukpga/1992/4/section/130), [reg. 71](https://www.legislation.gov.uk/uksi/2006/213/regulation/71)). Because the LHA caps the eligible rent, the taper comes off the LHA: a private tenant with rent above the LHA and income above the applicable amount receives the LHA less the taper, not the lower of the LHA and the rent less the taper. The pension-age regulations (SI 2006/214) have the same rules at regs 12D, 13D, 50 and 51, and the Northern Ireland regulations at SR 2006/405 regs 13C, 14D, 68 and 69 and SR 2006/406 regs 13C, 14D, 48 and 49. Applicable income counts earnings, pensions and benefits net of the income tax and National Insurance on them. Income derived from capital (rent from property, interest and dividends) is not income: regulation 46(4) of the Housing Benefit Regulations 2006 treats it as capital, and Schedule 5 paragraph 22 of the pension-age regulations disregards it. The capital counts instead through `housing_benefit_tariff_income` and the capital limit. Rent for letting part of the home is the exception: it counts, less £20 a week per occupier.\n", " If the claimant or partner is on Universal Credit, Income Support, income-based Jobseeker's Allowance or income-related Employment and Support Allowance (`housing_benefit_on_passporting_benefit`), the whole of the family's earnings, other income and capital is disregarded ([SI 2006/213 Sch. 4 para. 12](https://www.legislation.gov.uk/uksi/2006/213/schedule/4/paragraph/12), [Sch. 5 para. 4](https://www.legislation.gov.uk/uksi/2006/213/schedule/5/paragraph/4) and [Sch. 6 para. 5](https://www.legislation.gov.uk/uksi/2006/213/schedule/6/paragraph/5); Northern Ireland: [SR 2006/405 Sch. 5 para. 12](https://www.legislation.gov.uk/nisr/2006/405/schedule/5/paragraph/12), [Sch. 6 para. 4](https://www.legislation.gov.uk/nisr/2006/405/schedule/6/paragraph/4) and [Sch. 7 para. 5](https://www.legislation.gov.uk/nisr/2006/405/schedule/7/paragraph/5)). `housing_benefit_applicable_income` and `housing_benefit_assessable_capital` are then zero, so the award is that maximum. This applies at any age: a mixed-age couple whose younger member is on one of these benefits is assessed under the working-age regulations ([SI 2006/213 reg. 5(1)(b)](https://www.legislation.gov.uk/uksi/2006/213/regulation/5)). Income Support, income-based Jobseeker's Allowance and income-related Employment and Support Allowance count when a positive amount is paid on the claimant's or partner's award (`in_receipt_of_income_support_jsa_ib_or_esa_ir`, which reads `claimant_or_partner_jsa_income` and `claimant_or_partner_esa_income`). Another member's own award, such as a non-dependant's, is payable to them and does not passport the claimant. A person is on Universal Credit on any day they are entitled to it, whether it is in payment or not ([reg. 2(3B)](https://www.legislation.gov.uk/uksi/2006/213/regulation/2)); PolicyEngine reads that as Universal Credit above nil before the benefit cap and deductions (`is_uc_entitled`), for a family that claims it, so the passport adds no circular dependency through the benefit cap. The universal credit limb applies from 28 October 2013 in Great Britain and 8 May 2018 in Northern Ireland (`gov.dwp.housing_benefit.means_test.universal_credit_passport`). It matters only where Housing Benefit is paid alongside Universal Credit, for specified or temporary accommodation (`in_specified_or_temporary_accommodation`, above).\n", @@ -57,7 +57,7 @@ "\n", "The take-up gate (`would_claim_housing_benefit`) is applied inside `housing_benefit_pre_benefit_cap`.\n", "\n", - "**Houseboats, caravans and mobile homes.** The council determines no maximum rent (LHA) where the rent is for a houseboat, caravan or mobile home the claimant occupies as their home ([SI 2006/213 reg. 13C(5)(d)(i)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13C)); [SI 2006/214 reg. 13C(5)(d)(i)](https://www.legislation.gov.uk/uksi/2006/214/regulation/13C) and, for Northern Ireland, [SR 2006/405](https://www.legislation.gov.uk/nisr/2006/405/regulation/14C) and [SR 2006/406 reg. 14C(5)(d)(i)](https://www.legislation.gov.uk/nisr/2006/406/regulation/14C) carry the same exclusion. By default PolicyEngine sets `LHA_eligible` to false where the household's recorded `accommodation_type` is `MOBILE`; an unknown type keeps the LHA. When `LHA_eligible` is true, `housing_benefit_entitlement` uses `LHA_cap`; otherwise it uses `max(0, benunit_rent - housing_benefit_meals_deduction)`. Housing Benefit can still meet the rent or licence fee, mooring charges and site payments ([reg. 12(1)(a), (b), (f) and (g)](https://www.legislation.gov.uk/uksi/2006/213/regulation/12)), subject to the other conditions of an award, so `housing_benefit_eligible` reads `benunit_is_renting` and these families stay eligible where they rent. PolicyEngine doesn't model an owner-occupier's mooring charges or site payments. A supplied `LHA_eligible` selects the eligible-rent calculation independently of `housing_benefit_eligible`, so a user can take another claim outside the LHA, such as a hostel, without changing its eligibility. For a rent allowance outside the LHA, a council in Great Britain normally uses a rent officer's determination ([regs. 14](https://www.legislation.gov.uk/uksi/2006/213/regulation/14) and [13](https://www.legislation.gov.uk/uksi/2006/213/regulation/13)), and in Northern Ireland the Housing Executive decides ([SR 2006/405 regs. 15](https://www.legislation.gov.uk/nisr/2006/405/regulation/15) and [14](https://www.legislation.gov.uk/nisr/2006/405/regulation/14)). The eligible rent starts from the resulting maximum rent, subject to adjustments ([reg. 12C](https://www.legislation.gov.uk/uksi/2006/213/regulation/12C); NI [reg. 13B](https://www.legislation.gov.uk/nisr/2006/405/regulation/13B)). That maximum can fall below the rent, for example to the single room rent for some single claimants under 35 on the working-age regulations. Where the residual rule applies instead, the council starts from the payments the claimant is liable for and makes deductions, apportionment and reasonableness adjustments ([reg. 12B](https://www.legislation.gov.uk/uksi/2006/213/regulation/12B); NI [reg. 13A](https://www.legislation.gov.uk/nisr/2006/405/regulation/13A)). PolicyEngine has no rent officer's rent amount and deducts only the prescribed charge for meals, so it can overstate Housing Benefit for these families. The DWP makes no such exception in Universal Credit: qualifying private-sector rent payments, which include mooring charges and site payments ([SI 2013/376 Sch. 1 para. 2](https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/2)), stay subject to the LHA cap whatever the home ([Sch. 4 paras. 20, 22 and 25](https://www.legislation.gov.uk/uksi/2013/376/schedule/4))." + "**Houseboats, caravans and mobile homes.** The council determines no maximum rent (LHA) where the rent is for a houseboat, caravan or mobile home the claimant occupies as their home ([SI 2006/213 reg. 13C(5)(d)(i)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13C)); [SI 2006/214 reg. 13C(5)(d)(i)](https://www.legislation.gov.uk/uksi/2006/214/regulation/13C) and, for Northern Ireland, [SR 2006/405](https://www.legislation.gov.uk/nisr/2006/405/regulation/14C) and [SR 2006/406 reg. 14C(5)(d)(i)](https://www.legislation.gov.uk/nisr/2006/406/regulation/14C) carry the same exclusion. By default PolicyEngine sets `LHA_eligible` to false where the household's recorded `accommodation_type` is `MOBILE`; an unknown type leaves the default flag to the renting and social-housing checks. When `LHA_eligible` is true, `housing_benefit_entitlement` uses `LHA_cap`; otherwise it uses `max(0, benunit_rent - housing_benefit_meals_deduction)`. Housing Benefit can still meet the rent or licence fee, mooring charges and site payments ([reg. 12(1)(a), (b), (f) and (g)](https://www.legislation.gov.uk/uksi/2006/213/regulation/12)), subject to the other conditions of an award, so `housing_benefit_eligible` reads `benunit_is_renting` and these families stay eligible where they rent. PolicyEngine doesn't model an owner-occupier's mooring charges or site payments. A supplied `LHA_eligible` selects the eligible-rent calculation independently of `housing_benefit_eligible`, so a user can take another claim outside the LHA, such as a hostel, without changing its eligibility. For a rent allowance outside the LHA, a council in Great Britain normally uses a rent officer's determination ([regs. 14](https://www.legislation.gov.uk/uksi/2006/213/regulation/14) and [13](https://www.legislation.gov.uk/uksi/2006/213/regulation/13)), and in Northern Ireland the Housing Executive decides ([SR 2006/405 regs. 15](https://www.legislation.gov.uk/nisr/2006/405/regulation/15) and [14](https://www.legislation.gov.uk/nisr/2006/405/regulation/14)). The eligible rent starts from the resulting maximum rent, subject to adjustments ([reg. 12C](https://www.legislation.gov.uk/uksi/2006/213/regulation/12C); NI [reg. 13B](https://www.legislation.gov.uk/nisr/2006/405/regulation/13B)). That maximum can fall below the rent, for example to the single room rent for some single claimants under 35 on the working-age regulations. Where the residual rule applies instead, the council or, in Northern Ireland, the Housing Executive starts from the payments the claimant is liable for and makes deductions, apportionment and reasonableness adjustments ([reg. 12B](https://www.legislation.gov.uk/uksi/2006/213/regulation/12B); NI [reg. 13A](https://www.legislation.gov.uk/nisr/2006/405/regulation/13A)). PolicyEngine has no rent officer's rent amount and deducts only the prescribed charge for meals, so it can overstate Housing Benefit for these families. The DWP makes no such exception in Universal Credit: qualifying private-sector rent payments, which include mooring charges and site payments ([SI 2013/376 Sch. 1 para. 2](https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/2)), stay subject to the LHA cap whatever the home ([Sch. 4 paras. 20, 22 and 25](https://www.legislation.gov.uk/uksi/2013/376/schedule/4))." ] }, { diff --git a/policyengine_uk/variables/gov/dwp/LHA_eligible.py b/policyengine_uk/variables/gov/dwp/LHA_eligible.py index d8d1a1ad11..eeb561737f 100644 --- a/policyengine_uk/variables/gov/dwp/LHA_eligible.py +++ b/policyengine_uk/variables/gov/dwp/LHA_eligible.py @@ -11,9 +11,10 @@ class LHA_eligible(Variable): "max(0, benunit_rent - housing_benefit_meals_deduction). By default " "the flag holds where the benefit unit rents, no member lives in " "social housing, and the household's recorded accommodation type " - "isn't a houseboat, caravan or mobile home; an unknown type keeps " - "the flag. A supplied value selects the model's eligible-rent " - "calculation independently of housing_benefit_eligible." + "isn't a houseboat, caravan or mobile home; an unknown type leaves " + "the flag to the renting and social housing checks. A supplied " + "value selects the model's eligible-rent calculation independently " + "of housing_benefit_eligible." ) definition_period = YEAR reference = (