diff --git a/changelog.d/2928.fixed.md b/changelog.d/2928.fixed.md new file mode 100644 index 0000000000..82f2477808 --- /dev/null +++ b/changelog.d/2928.fixed.md @@ -0,0 +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 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 37cee6281d..9c1467defa 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 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 (`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", "- **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", @@ -32,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", @@ -48,13 +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, and no member in social housing), 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, 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`." + "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 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/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 713938e19a..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 @@ -1,20 +1,50 @@ +# 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 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 + # 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 - LHA_eligible: false + benunit_is_renting: false + 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: false + housing_benefit_reported: 1 + partner: + age: 40 + in_social_housing: true + 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: LHA eligible +- name: Private renter eligible period: 2021 input: would_claim_uc: false # continuing award route: not claiming Universal Credit in_social_housing: false housing_benefit_reported: 1 - LHA_eligible: true + benunit_is_renting: true output: housing_benefit_eligible: true @@ -24,17 +54,54 @@ would_claim_uc: false # continuing award route: not claiming Universal Credit in_social_housing: false housing_benefit_reported: 0 - LHA_eligible: true + benunit_is_renting: true output: housing_benefit_eligible: false -- name: Not eligible +- name: Not renting, not eligible period: 2021 input: would_claim_uc: false # continuing award route: not claiming Universal Credit in_social_housing: false housing_benefit_reported: 1 + benunit_is_renting: false + output: + housing_benefit_eligible: false + +- 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 family passes the + # eligibility gate. + period: 2021 + input: + would_claim_uc: false # continuing award route: not claiming Universal Credit + housing_benefit_reported: 1 + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + output: LHA_eligible: false + housing_benefit_eligible: true + +- 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 + 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 @@ -354,8 +421,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 new file mode 100644 index 0000000000..b11adc0db6 --- /dev/null +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/lha_mobile_homes.yaml @@ -0,0 +1,375 @@ +# 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)). 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 + input: + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + output: + LHA_eligible: false + +- name: The LHA applies to a private renter in a flat + period: 2025 + input: + tenure_type: RENT_PRIVATELY + accommodation_type: FLAT + output: + LHA_eligible: true + +- name: The LHA applies to a private renter whose accommodation is unknown + period: 2025 + input: + tenure_type: RENT_PRIVATELY + accommodation_type: UNKNOWN + output: + LHA_eligible: true + +- name: The LHA doesn't apply to a housing association tenant in a caravan + # 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 + accommodation_type: MOBILE + output: + LHA_eligible: false + +- 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 + input: + age: 70 + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + output: + LHA_eligible: false + housing_benefit_eligible: true + +- 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: 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: + 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: false + partner: + age: 70 + in_social_housing: true + 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: 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 model awards the rent of 5,200. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + householder: + age: 50 + is_household_head: true + lodger: + age: 70 + rent_paid_as_lodger: 5_200 + benunits: + householder_family: + members: [householder] + lodger_family: + members: [lodger] + 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 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: 70 + rent_paid_as_lodger: 5_200 + benunits: + householder_family: + members: [householder] + lodger_family: + members: [lodger] + 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 + 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 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 + # 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 + 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: 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 + 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 (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 + 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: 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: 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 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: + 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: 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 + input: + age: 70 + region: NORTH_EAST + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + rent: 7_800 + output: + LHA_eligible: false + housing_benefit_eligible: true + 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 + +# 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 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's housing costs element caps a caravan renter's rent at the LHA + period: 2025 + 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'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 + 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 083de4e693..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,10 +150,7 @@ 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"] = values["social"] | values["LHA_eligible"].astype(bool) + 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 new file mode 100644 index 0000000000..05e17c7c68 --- /dev/null +++ b/policyengine_uk/tests/test_lha_mobile_homes_properties.py @@ -0,0 +1,205 @@ +"""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)). 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 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 +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: + +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 policyengine_uk import Simulation +from policyengine_uk.variables.household.demographic.accommodation_type import ( + AccommodationType, +) + +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", + "RENT_PRIVATELY", + "OWNED_OUTRIGHT", + "OWNED_WITH_MORTGAGE", +] +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 + ) +] +VARIABLES = [ + "LHA_eligible", + "LHA_cap", + "benunit_rent", + "benunit_is_renting", + "housing_benefit_eligible", + "housing_benefit_entitlement", + "uc_housing_costs_element", +] + + +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)] + ) + 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} + + 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() + 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) + 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"][~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, + ) + + # 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( + family="pensioner", + tenure="RENT_PRIVATELY", + region="LONDON", + 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) + ) + 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 662b36e484..eeb561737f 100644 --- a/policyengine_uk/variables/gov/dwp/LHA_eligible.py +++ b/policyengine_uk/variables/gov/dwp/LHA_eligible.py @@ -5,12 +5,46 @@ 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 = ( + "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 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 = ( + "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 + # 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 + # 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) + ) + 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 f3cea7f86f..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 @@ -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,7 +114,15 @@ 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)) - lha_eligible = benunit("LHA_eligible", period) + # 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 + # 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 ) @@ -125,6 +135,6 @@ def formula(benunit, period, parameters): ) return ( (pension_age | continuing_award | accommodation) - & (social | lha_eligible) + & (social | renting) & (capital <= limit) )