diff --git a/changelog.d/2930.fixed.md b/changelog.d/2930.fixed.md new file mode 100644 index 0000000000..1c996406fb --- /dev/null +++ b/changelog.d/2930.fixed.md @@ -0,0 +1 @@ +Housing Benefit and Universal Credit housing support now includes qualifying site and mooring payments and requires the benefit unit to be liable for rent. Universal Credit uses a separately supplied social-provider fact for qualifying payments owed to a social housing provider, while private payments retain the LHA cap. diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index 9c1467defa..1685e7203a 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -19,13 +19,13 @@ "source": [ "## Eligibility\n", "\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", + "`housing_benefit_eligible` requires payment liability (`benunit_is_rent_liable`) and either renting (`benunit_is_renting`), a member in social housing (`in_social_housing`), or qualifying site or mooring payment liability (`has_qualifying_site_or_mooring_liability`). The family must also have assessable capital at or below the working-age or pension-age capital limit and 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 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", + "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)). The payment liability, 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", @@ -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`; 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", + "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)). In the Great Britain working-age regulations, [reg. 13D(12)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13D) defines cap rent as the aggregate of the reg. 12(1) payments the claimant is liable, or treated as liable, to pay, subject to reg. 12B(3), (4) and (6). PolicyEngine uses `benunit_rent` as the cap rent. Its existing allocation rules divide the household rent; the model does not determine additional mixed use or authority discretion adjustments.\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,11 @@ "\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 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))." + "**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 these payments can qualify even where the family owns the houseboat, caravan or mobile home. The pension-age [SI 2006/214 reg. 12](https://www.legislation.gov.uk/uksi/2006/214/regulation/12), and Northern Ireland's working-age [SR 2006/405 reg. 13](https://www.legislation.gov.uk/nisr/2006/405/regulation/13) and pension-age [SR 2006/406 reg. 13](https://www.legislation.gov.uk/nisr/2006/406/regulation/13), list the same mooring and site payments.\n", + "\n", + "Set `has_qualifying_site_or_mooring_liability` to `True` only for a legally qualifying actual or deemed site or mooring payment liability established outside the model, and enter the annual qualifying amount in `benunit_rent`. It defaults to `False`; neither owner tenure nor `MOBILE` accommodation infers it. The input identifies a qualifying payment type and liability, not overall programme eligibility. The family still needs `benunit_is_rent_liable`, and the age, claim, accommodation, capital and take-up conditions still apply. Ordinary mortgage payments and other owner costs do not enter this route. The input does not change tenancy or the allocation of household rent.\n", + "\n", + "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 ([GB Sch. 4 paras. 20, 22 and 25](https://www.legislation.gov.uk/uksi/2013/376/schedule/4); [NI Sch. 4 paras. 19, 21 and 24](https://www.legislation.gov.uk/nisr/2016/216/schedule/4)). Private-provider payments retain that cap. For an amount owed to a provider of social housing, set `qualifying_site_or_mooring_provider_is_social` to `True` after establishing the provider classification outside the model ([GB Sch. 4 paras. 2 and 30](https://www.legislation.gov.uk/uksi/2013/376/schedule/4); [NI Sch. 4 paras. 2 and 29](https://www.legislation.gov.uk/nisr/2016/216/schedule/4)). Alongside `has_qualifying_site_or_mooring_liability`, it selects the existing UC social rent route; the provider flag alone does not open the owner payment route. The existing council or housing association tenure proxy retains priority. Neither input changes tenure or allocates mixed private and social payments, and the UC exclusion for specified or temporary accommodation still applies." ] }, { diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/carer_premium.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/carer_premium.yaml index 0873c9466c..60b9fedc68 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/carer_premium.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/carer_premium.yaml @@ -211,6 +211,7 @@ benunits: family: members: [claimant, partner] + benunit_is_rent_liable: true disability_premium: 0 enhanced_disability_premium: 0 severe_disability_premium: 0 @@ -518,6 +519,7 @@ benunits: family: members: [claimant, partner] + benunit_is_rent_liable: true households: household: members: [claimant, partner] diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_capital.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_capital.yaml index d6eee69d34..40c7af0857 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_capital.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_capital.yaml @@ -10,6 +10,7 @@ benunits: benunit: members: person + benunit_is_rent_liable: true would_claim_uc: false households: household: @@ -188,6 +189,7 @@ benunits: benunit: members: person + benunit_is_rent_liable: true guarantee_credit: 0 would_claim_uc: false housing_benefit_applicable_income_disregard: 0 @@ -236,6 +238,7 @@ benunits: benunit: members: person + benunit_is_rent_liable: true # The passport needs a guarantee credit that is paid. Pension Credit # income here is 10,000 plus 80 x 52 = 4,160 deemed from capital, # 14,160 in all, above the 2025-26 standard minimum guarantee @@ -268,6 +271,7 @@ benunits: benunit: members: person + benunit_is_rent_liable: true would_claim_uc: false households: household: 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 a8c822ba5d..c3bf5589fa 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 @@ -5,10 +5,11 @@ # 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. + # The social housing flag opens the tenure route; the claimant also + # has the explicitly supplied payment liability. period: 2021 input: + benunit_is_rent_liable: true would_claim_uc: false # continuing award route: not claiming Universal Credit in_social_housing: true housing_benefit_reported: 1 @@ -30,6 +31,7 @@ benunits: benunit: members: [adult, partner] + benunit_is_rent_liable: true would_claim_uc: false # continuing award route: not claiming Universal Credit benunit_is_renting: false households: @@ -41,6 +43,7 @@ - name: Private renter eligible period: 2021 input: + benunit_is_rent_liable: true would_claim_uc: false # continuing award route: not claiming Universal Credit in_social_housing: false housing_benefit_reported: 1 @@ -75,6 +78,7 @@ # eligibility gate. period: 2021 input: + benunit_is_rent_liable: true would_claim_uc: false # continuing award route: not claiming Universal Credit housing_benefit_reported: 1 tenure_type: RENT_PRIVATELY @@ -84,10 +88,11 @@ 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. + # The flag selects the eligible-rent calculation; tenure and payment + # liability decide this claimant's eligibility. period: 2021 input: + benunit_is_rent_liable: true would_claim_uc: false # continuing award route: not claiming Universal Credit housing_benefit_reported: 1 tenure_type: RENT_PRIVATELY 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 b11adc0db6..c48140de6b 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 @@ -42,9 +42,9 @@ 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. + # Owning the caravan alone does not establish a qualifying site or + # mooring payment. No qualifying payment-type input is supplied here, + # so this ordinary owner still gets no Housing Benefit. period: 2025 input: age: 70 @@ -57,6 +57,7 @@ - name: Pension-age private renter in a caravan can claim Housing Benefit period: 2025 input: + benunit_is_rent_liable: true age: 70 tenure_type: RENT_PRIVATELY accommodation_type: MOBILE @@ -68,6 +69,7 @@ # SR 2006/405 and SR 2006/406 reg 14C(5)(d)(i). period: 2025 input: + benunit_is_rent_liable: true age: 70 region: NORTHERN_IRELAND tenure_type: RENT_PRIVATELY @@ -80,6 +82,7 @@ # Reg 13C(5)(d)(i) has no age condition. period: 2025 input: + benunit_is_rent_liable: true age: 25 housing_benefit_reported: 1 would_claim_uc: false @@ -103,6 +106,7 @@ benunits: benunit: members: [adult, partner] + benunit_is_rent_liable: true households: household: members: [adult, partner] diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/qualifying_housing_payments.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/qualifying_housing_payments.yaml new file mode 100644 index 0000000000..f520913c6a --- /dev/null +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/qualifying_housing_payments.yaml @@ -0,0 +1,333 @@ +# Current 2026 qualifying payment liabilities, not ordinary owner costs. +# GB: SI 2006/213 and SI 2006/214 reg 12(1)(f)/(g); NI: SR 2006/405 +# and SR 2006/406 reg 13(1)(f)/(g). The explicit payment-type input means +# actual/deemed liability, home occupation and relevant exclusions have been +# established outside the model; rent supplies only the qualifying amount. +# With no income, capital, non-dependants or meals, the existing non-LHA +# eligible-rent approximation pays the supplied 5,200. No PC cash is asserted. +# https://www.legislation.gov.uk/uksi/2006/214/regulation/12 +# https://www.legislation.gov.uk/nisr/2006/406/regulation/13 + +- name: Case 1, an owner receives Housing Benefit for a qualifying mobile-home site payment. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 70 + state_pension: 0 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: false + would_claim_housing_benefit: true + has_qualifying_site_or_mooring_liability: true + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + rent: 5_200 + output: + housing_benefit: 5_200 + +- name: Case 2, a financed houseboat owner receives Housing Benefit for a qualifying mooring charge. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 70 + state_pension: 0 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: false + would_claim_housing_benefit: true + has_qualifying_site_or_mooring_liability: true + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: OWNED_WITH_MORTGAGE + accommodation_type: MOBILE + rent: 5_200 + output: + housing_benefit: 5_200 + +- name: Case 3, positive generic rent does not establish a qualifying owner payment. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 70 + state_pension: 0 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: false + would_claim_housing_benefit: true + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + rent: 5_200 + output: + housing_benefit: 0 + +- name: Case 4, an explicit false payment-type flag leaves an owner without Housing Benefit. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 70 + state_pension: 0 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: false + would_claim_housing_benefit: true + has_qualifying_site_or_mooring_liability: false + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + rent: 5_200 + output: + housing_benefit: 0 + +- name: Case 5, the qualifying payment-type flag does not override absent liability. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 70 + state_pension: 0 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: false + would_claim_housing_benefit: true + has_qualifying_site_or_mooring_liability: true + benunit_is_rent_liable: false + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + rent: 5_200 + output: + housing_benefit: 0 + +- name: Case 6, a private tenant without liability receives no Housing Benefit. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 70 + state_pension: 0 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: false + would_claim_housing_benefit: true + benunit_is_rent_liable: false + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + rent: 5_200 + output: + housing_benefit: 0 + +- name: Case 7, a liable private mobile-home tenant retains Housing Benefit. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 70 + state_pension: 0 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: false + would_claim_housing_benefit: true + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + rent: 5_200 + output: + housing_benefit: 5_200 + +- name: Case 8, a liable social tenant retains Housing Benefit. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 70 + state_pension: 0 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: false + would_claim_housing_benefit: true + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: RENT_FROM_COUNCIL + accommodation_type: MOBILE + rent: 5_200 + output: + housing_benefit: 5_200 + +- name: Case 9, a Northern Ireland owner receives Housing Benefit for a qualifying site payment. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 70 + state_pension: 0 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: false + would_claim_housing_benefit: true + has_qualifying_site_or_mooring_liability: true + households: + household: + members: [person1] + country: NORTHERN_IRELAND + region: NORTHERN_IRELAND + brma: BELFAST + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + rent: 5_200 + output: + housing_benefit: 5_200 + +- name: Case 10, a social tenant without liability receives no Housing Benefit. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 70 + state_pension: 0 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: false + would_claim_housing_benefit: true + benunit_is_rent_liable: false + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: RENT_FROM_COUNCIL + accommodation_type: MOBILE + rent: 5_200 + output: + housing_benefit: 0 + +- name: Case 11, a qualifying owner keeps owner tenure and passes the liability gateway. + period: 2026 + input: + people: + person1: + age: 70 + state_pension: 0 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: false + would_claim_housing_benefit: true + has_qualifying_site_or_mooring_liability: true + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + rent: 5_200 + output: + has_qualifying_site_or_mooring_liability: true + benunit_is_renting: false + benunit_is_rent_liable: true + housing_benefit_eligible: true + +- name: Case 12, the payment-type input defaults to false for an ordinary owner. + period: 2026 + input: + people: + person1: + age: 70 + state_pension: 0 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: false + would_claim_housing_benefit: true + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + rent: 5_200 + output: + has_qualifying_site_or_mooring_liability: false + benunit_is_renting: false + housing_benefit_eligible: false diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/uc_legacy_mutual_exclusion.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/uc_legacy_mutual_exclusion.yaml index aa7b80676f..521be484d1 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/uc_legacy_mutual_exclusion.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/uc_legacy_mutual_exclusion.yaml @@ -23,6 +23,7 @@ period: 2025 absolute_error_margin: 0 input: + benunit_is_rent_liable: true in_social_housing: true housing_benefit_reported: 4_000 would_claim_uc: false diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/claims_universal_credit.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/claims_universal_credit.yaml index cfaa35b828..ca759b3287 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/claims_universal_credit.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/claims_universal_credit.yaml @@ -18,6 +18,7 @@ benunits: benunit: members: [parent, child] + benunit_is_rent_liable: true would_claim_uc: false would_claim_uc_at_legacy_closure: true households: @@ -91,6 +92,7 @@ benunits: benunit: members: [adult] + benunit_is_rent_liable: true would_claim_uc: false would_claim_uc_at_legacy_closure: true households: @@ -160,6 +162,7 @@ benunits: benunit: members: [parent, child] + benunit_is_rent_liable: true would_claim_uc: false would_claim_uc_at_legacy_closure: true households: @@ -269,6 +272,7 @@ benunits: benunit: members: [grandparent, child] + benunit_is_rent_liable: true would_claim_uc: false would_claim_uc_at_legacy_closure: true households: @@ -356,6 +360,7 @@ benunits: benunit: members: [older, younger] + benunit_is_rent_liable: true has_mixed_age_couple_pension_credit_saving: true would_claim_uc: false would_claim_uc_at_legacy_closure: false @@ -389,6 +394,7 @@ benunits: benunit: members: [older, younger, child] + benunit_is_rent_liable: true has_mixed_age_couple_pension_credit_saving: true would_claim_uc: false would_claim_uc_at_legacy_closure: true @@ -437,6 +443,7 @@ benunits: benunit: members: [adult] + benunit_is_rent_liable: true would_claim_uc: false would_claim_uc_at_legacy_closure: false households: @@ -510,6 +517,7 @@ benunits: benunit: members: [adult] + benunit_is_rent_liable: true would_claim_uc: false would_claim_uc_at_legacy_closure: true households: diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/housing_costs_element/qualifying_housing_payments.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/housing_costs_element/qualifying_housing_payments.yaml new file mode 100644 index 0000000000..e51aca7282 --- /dev/null +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/housing_costs_element/qualifying_housing_payments.yaml @@ -0,0 +1,667 @@ +# Current 2026 qualifying site/mooring payments: UC Regs 2013 regs 25/26, +# Sch 1 para 2(c)/(d), Sch 4 paras 20/22/25; NI regs 26/27, Sch 1 para 2, +# Sch 4 paras 19/21/24. Ordinary mortgage repayments are not tested as rent. +# Single age 40 standard allowance: 424.90/month x 12 = 5,098.80. +# 2026 Inner South East London one-bed LHA: 1,295.50/month x 12 = 15,546. +# A 5,200 payment is below that cap; 5,098.80 + 5,200 = 10,298.80, +# below the single London annual benefit cap of 16,967. No income, capital, +# non-dependants or other awards reduce these raw-input cases. +# https://www.gov.uk/government/publications/benefit-and-pension-rates-2026-to-2027/proposed-benefit-and-pension-rates-2026-to-2027 +# https://www.gov.uk/government/publications/universal-credit-local-housing-allowance-rates-2026-to-2027 +# https://www.legislation.gov.uk/uksi/2013/376/schedule/4 + +- name: Case 1, a qualifying owner site payment reaches the final Universal Credit award. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + has_qualifying_site_or_mooring_liability: true + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + rent: 5_200 + output: + uc_housing_costs_element: 5_200 + universal_credit: 10_298.8 + +- name: Case 2, a financed houseboat owner receives the qualifying mooring amount. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + has_qualifying_site_or_mooring_liability: true + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: OWNED_WITH_MORTGAGE + accommodation_type: MOBILE + rent: 5_200 + output: + uc_housing_costs_element: 5_200 + universal_credit: 10_298.8 + +- name: Case 3, the default false payment-type input leaves an owner with the standard allowance. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + rent: 5_200 + output: + uc_housing_costs_element: 0 + universal_credit: 5_098.8 + +- name: Case 4, an explicit false payment-type flag excludes an owner housing amount. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + has_qualifying_site_or_mooring_liability: false + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + rent: 5_200 + output: + uc_housing_costs_element: 0 + universal_credit: 5_098.8 + +- name: Case 5, qualifying payment type cannot override an explicit absence of liability. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + has_qualifying_site_or_mooring_liability: true + benunit_is_rent_liable: false + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + rent: 5_200 + output: + uc_housing_costs_element: 0 + universal_credit: 5_098.8 + +- name: Case 6, a private tenant without liability has no housing element. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + benunit_is_rent_liable: false + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + rent: 5_200 + output: + uc_housing_costs_element: 0 + universal_credit: 5_098.8 + +- name: Case 7, an ordinary liable private tenant retains the housing element. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + rent: 5_200 + output: + uc_housing_costs_element: 5_200 + universal_credit: 10_298.8 + +- name: Case 8, an ordinary liable social tenant retains the housing element. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: RENT_FROM_COUNCIL + accommodation_type: MOBILE + rent: 5_200 + output: + uc_housing_costs_element: 5_200 + universal_credit: 10_298.8 + +- name: Case 9, a qualifying owner remains subject to the private LHA and final benefit caps. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + has_qualifying_site_or_mooring_liability: true + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + rent: 20_000 + output: + uc_housing_costs_element: 15_546 + universal_credit_pre_benefit_cap: 20_644.8 + uc_benefit_cap: 16_967 + universal_credit: 16_967 + +- name: Case 10, a social tenant without liability has no housing element. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + benunit_is_rent_liable: false + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: RENT_FROM_COUNCIL + accommodation_type: MOBILE + rent: 5_200 + output: + uc_housing_costs_element: 0 + universal_credit: 5_098.8 + +- name: Case 11, an owner who does not take up the housing element receives only the standard allowance. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + has_qualifying_site_or_mooring_liability: true + would_claim_uc_housing_costs_element: false + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + rent: 5_200 + output: + uc_housing_costs_element: 0 + universal_credit: 5_098.8 + +# The qualifying payment-type fact does not assert overall UC entitlement; +# specified/temporary accommodation still excludes it from this element. +- name: Case 12, specified or temporary accommodation remains outside the UC housing element. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + has_qualifying_site_or_mooring_liability: true + in_specified_or_temporary_accommodation: true + households: + household: + members: [person1] + country: ENGLAND + region: LONDON + brma: INNER_SOUTH_EAST_LONDON + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + rent: 5_200 + output: + uc_housing_costs_element: 0 + universal_credit: 5_098.8 + +# Provider routing is separate from caravan/houseboat ownership and payment type. +# GB: UC Sch4 paras2/3/20/22/25/30/33/34; NI paras2/3/19/21/24/29/32/33. +# Council/registered-provider status is established outside the model. All positive +# social cases have one bedroom, commercial qualifying payments and no reductions. +# 2026 Barnsley one-bed LHA: 415/month x12 =4980; qualifying social rent=6000. +# Standard allowance: 424.90/month x12 =5098.80; GB final awards=10078.80/11098.80, +# below the outside-London single cap of14753. No calculated money input is forced. +# NI Belfast one-bed LHA: 605.47/month x12 =7265.64; rent8400 gives final UC +# 12364.44(private) and13498.80(social), a1134.36 difference, both below the cap. +# NI social provider means the Housing Executive or a registered housing association. +# The two owner guard cases deliberately omit payment qualification or liability; +# provider status alone does not supply either fact or overall UC entitlement. +# https://www.legislation.gov.uk/uksi/2013/376/schedule/4 +# https://www.legislation.gov.uk/nisr/2016/216/schedule/4 +# https://www.legislation.gov.uk/nisr/2026/54/regulation/3 +# https://www.gov.uk/government/publications/universal-credit-local-housing-allowance-rates-2026-to-2027 +# https://www.nidirect.gov.uk/articles/universal-credit-payments-housing +# https://www.nidirect.gov.uk/articles/benefit-cap + +- name: Case 13, a caravan owner paying a council pitch charge uses the social provider route. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + has_qualifying_site_or_mooring_liability: true + qualifying_site_or_mooring_provider_is_social: true + households: + household: + members: [person1] + country: ENGLAND + region: YORKSHIRE + brma: BARNSLEY + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + num_bedrooms: 1 + rent: 6000 + output: + universal_credit: 11098.8 + uc_housing_costs_element: 6000.0 + +- name: Case 14, an explicit private provider keeps a qualifying owner subject to LHA. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + has_qualifying_site_or_mooring_liability: true + qualifying_site_or_mooring_provider_is_social: false + households: + household: + members: [person1] + country: ENGLAND + region: YORKSHIRE + brma: BARNSLEY + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + num_bedrooms: 1 + rent: 6000 + output: + universal_credit: 10078.8 + uc_housing_costs_element: 4980.0 + +- name: Case 15, the omitted provider input retains the private route for a qualifying owner. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + has_qualifying_site_or_mooring_liability: true + households: + household: + members: [person1] + country: ENGLAND + region: YORKSHIRE + brma: BARNSLEY + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + num_bedrooms: 1 + rent: 6000 + output: + universal_credit: 10078.8 + uc_housing_costs_element: 4980.0 + +- name: Case 16, a provider fact alone does not qualify an ordinary owner payment. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + qualifying_site_or_mooring_provider_is_social: true + households: + household: + members: [person1] + country: ENGLAND + region: YORKSHIRE + brma: BARNSLEY + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + num_bedrooms: 1 + rent: 6000 + output: + universal_credit: 5098.8 + uc_housing_costs_element: 0.0 + +- name: Case 17, a social provider does not override the absence of payment liability. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + has_qualifying_site_or_mooring_liability: true + qualifying_site_or_mooring_provider_is_social: true + benunit_is_rent_liable: false + households: + household: + members: [person1] + country: ENGLAND + region: YORKSHIRE + brma: BARNSLEY + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + num_bedrooms: 1 + rent: 6000 + output: + universal_credit: 5098.8 + uc_housing_costs_element: 0.0 + +- name: Case 18, specified or temporary accommodation still excludes a social provider owner element. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + has_qualifying_site_or_mooring_liability: true + qualifying_site_or_mooring_provider_is_social: true + in_specified_or_temporary_accommodation: true + households: + household: + members: [person1] + country: ENGLAND + region: YORKSHIRE + brma: BARNSLEY + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + num_bedrooms: 1 + rent: 6000 + output: + universal_credit: 5098.8 + uc_housing_costs_element: 0.0 + +- name: Case 19, an owner social provider amount remains subject to housing element take up. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + has_qualifying_site_or_mooring_liability: true + qualifying_site_or_mooring_provider_is_social: true + would_claim_uc_housing_costs_element: false + households: + household: + members: [person1] + country: ENGLAND + region: YORKSHIRE + brma: BARNSLEY + tenure_type: OWNED_OUTRIGHT + accommodation_type: MOBILE + num_bedrooms: 1 + rent: 6000 + output: + universal_credit: 5098.8 + uc_housing_costs_element: 0.0 + +- name: Case 20, a provider fact without the qualifying payment flag leaves a private tenancy capped. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + has_qualifying_site_or_mooring_liability: false + qualifying_site_or_mooring_provider_is_social: true + households: + household: + members: [person1] + country: ENGLAND + region: YORKSHIRE + brma: BARNSLEY + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + num_bedrooms: 1 + rent: 6000 + output: + universal_credit: 10078.8 + uc_housing_costs_element: 4980.0 + +- name: Case 21, the existing council tenancy route has priority over the qualifying private route. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + benunits: + benunit: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + has_qualifying_site_or_mooring_liability: true + qualifying_site_or_mooring_provider_is_social: false + households: + household: + members: [person1] + country: ENGLAND + region: YORKSHIRE + brma: BARNSLEY + tenure_type: RENT_FROM_COUNCIL + accommodation_type: MOBILE + num_bedrooms: 1 + rent: 6000 + output: + universal_credit: 11098.8 + uc_housing_costs_element: 6000.0 + +- name: Case 22, a financed houseboat owner paying a registered NI housing association receives the social amount. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + person2: + age: 40 + benunits: + family1: + members: [person1] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + has_qualifying_site_or_mooring_liability: true + qualifying_site_or_mooring_provider_is_social: false + family2: + members: [person2] + is_married: false + would_claim_uc: true + would_claim_housing_benefit: false + has_qualifying_site_or_mooring_liability: true + qualifying_site_or_mooring_provider_is_social: true + households: + home1: + members: [person1] + country: NORTHERN_IRELAND + region: NORTHERN_IRELAND + brma: BELFAST + tenure_type: OWNED_WITH_MORTGAGE + accommodation_type: MOBILE + num_bedrooms: 1 + rent: 8400 + home2: + members: [person2] + country: NORTHERN_IRELAND + region: NORTHERN_IRELAND + brma: BELFAST + tenure_type: OWNED_WITH_MORTGAGE + accommodation_type: MOBILE + num_bedrooms: 1 + rent: 8400 + output: + universal_credit: [12364.44, 13498.8] + uc_housing_costs_element: [7265.64, 8400] diff --git a/policyengine_uk/tests/policy/baseline/gov/dwp/pension_credit/state_pension_credit_qualifying_age.yaml b/policyengine_uk/tests/policy/baseline/gov/dwp/pension_credit/state_pension_credit_qualifying_age.yaml index 278fc185ed..54fb287ddf 100644 --- a/policyengine_uk/tests/policy/baseline/gov/dwp/pension_credit/state_pension_credit_qualifying_age.yaml +++ b/policyengine_uk/tests/policy/baseline/gov/dwp/pension_credit/state_pension_credit_qualifying_age.yaml @@ -229,6 +229,7 @@ benunits: benunit: members: [person1] + benunit_is_rent_liable: true households: household: members: [person1] @@ -348,6 +349,7 @@ benunits: benunit: members: [person1] + benunit_is_rent_liable: true households: household: members: [person1] diff --git a/policyengine_uk/tests/test_housing_benefit_accommodation_dates_properties.py b/policyengine_uk/tests/test_housing_benefit_accommodation_dates_properties.py index 065e8198f8..13ab142184 100644 --- a/policyengine_uk/tests/test_housing_benefit_accommodation_dates_properties.py +++ b/policyengine_uk/tests/test_housing_benefit_accommodation_dates_properties.py @@ -476,6 +476,8 @@ def test_r1_universal_credit_leaves_the_rent_out(units, year): def test_r2_eligibility_ignores_the_claim_and_the_closure(units, year): natural = accommodation_simulation(units, year) tenure_and_capital = natural.calculate("housing_benefit_eligible", year) + # Liability comes from the raw rent, normalized to the engine input dtype. + rent_liable = np.asarray([unit["rent"] for unit in units], dtype=np.float32) > 0 # The tenure and capital tests, read from the same simulation. social = natural.populations["benunit"].any( natural.calculate("in_social_housing", year) @@ -492,7 +494,7 @@ def test_r2_eligibility_ignores_the_claim_and_the_closure(units, year): hb_capital.working_age.limit, ) np.testing.assert_array_equal( - tenure_and_capital, (social | lha) & (capital <= limit) + tenure_and_capital, rent_liable & (social | lha) & (capital <= limit) ) for claims in (False, True): for closed in (False, True): diff --git a/policyengine_uk/tests/test_housing_benefit_income_related_benefit_passport_properties.py b/policyengine_uk/tests/test_housing_benefit_income_related_benefit_passport_properties.py index ef5625528f..4bc7b95f98 100644 --- a/policyengine_uk/tests/test_housing_benefit_income_related_benefit_passport_properties.py +++ b/policyengine_uk/tests/test_housing_benefit_income_related_benefit_passport_properties.py @@ -277,11 +277,12 @@ def test_receipt_never_lowers_pre_cap_housing_benefit(units, benefit, amount): def test_passported_social_tenant_gets_the_rent_at_any_age(units, benefit, amount): awards = [{**{b: 0.0 for b in BENEFITS}, benefit: amount} for _ in units] rents = np.array([unit["rent"] for unit in units]) + rent_liable = np.asarray(rents, dtype=np.float32) > 0 for first, second in [(40, 35), (70, 35), (70, 68)]: ages = [[first, second] for _ in units] values = calculate(units, awards=awards, ages=ages) assert receipt(values).all() - assert values["housing_benefit_eligible"].all() + np.testing.assert_array_equal(values["housing_benefit_eligible"], rent_liable) assert np.allclose(values["housing_benefit_entitlement"], rents, atol=0.01) 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 46198253c1..b48ec2f399 100644 --- a/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py +++ b/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py @@ -185,6 +185,7 @@ def test_new_claims_follow_the_pension_age_route(units): expected = ( wholly_pension_age(unit) and values["renting"][i] + and np.float32(unit["rent"]) > 0 and values["capital_ok"][i] ) assert bool(values["housing_benefit_eligible"][i]) == expected, unit @@ -207,7 +208,11 @@ def test_dataset_take_up_stays_anchored_to_reported_claims(units): if values["housing_benefit"][i] > 0: assert unit["hb_reported"] > 0, unit if not wholly_pension_age(unit): - renting_within_capital = values["renting"][i] and values["capital_ok"][i] + renting_within_capital = ( + values["renting"][i] + and np.float32(unit["rent"]) > 0 + and values["capital_ok"][i] + ) continuing_award = ( unit["hb_reported"] > 0 and not unit["would_claim_uc"] diff --git a/policyengine_uk/tests/test_lha_mobile_homes_properties.py b/policyengine_uk/tests/test_lha_mobile_homes_properties.py index 05e17c7c68..4719d1807a 100644 --- a/policyengine_uk/tests/test_lha_mobile_homes_properties.py +++ b/policyengine_uk/tests/test_lha_mobile_homes_properties.py @@ -203,3 +203,98 @@ def test_lha_freeze_moves_a_flat_renter_but_not_a_caravan_renter(): flat, caravan = 0, 1 assert frozen[flat] < unfrozen[flat] < 30_000 assert frozen[caravan] == unfrozen[caravan] == 30_000 + + +def test_ni_qualifying_mooring_payment_reaches_final_uc_award(): + """NI Sch1 para2(c), Sch4 paras19/21/24: the eligible payment reaches UC.""" + year = 2026 + situation = {"people": {}, "benunits": {}, "households": {}} + for index, qualifies in enumerate((True, False), 1): + person = f"person{index}" + family = f"family{index}" + home = f"home{index}" + situation["people"][person] = {"age": {year: 40}} + situation["benunits"][family] = { + "members": [person], + "is_married": {year: False}, + "would_claim_uc": {year: True}, + "would_claim_housing_benefit": {year: False}, + "has_qualifying_site_or_mooring_liability": {year: qualifies}, + } + situation["households"][home] = { + "members": [person], + "country": {year: "NORTHERN_IRELAND"}, + "region": {year: "NORTHERN_IRELAND"}, + "brma": {year: "BELFAST"}, + "tenure_type": {year: "OWNED_OUTRIGHT"}, + "accommodation_type": {year: "MOBILE"}, + "rent": {year: 5_200}, + } + sim = Simulation(situation=situation) + # nidirect's current 2026/27 Belfast one-bed LHA is 605.47/month, + # above 5,200/year. The NI single cap is 283.71/week. Even standard + # allowance 424.90/month + 5,200/year = 10,298.80 stays below that cap. + # Only the qualifying-payment fact differs; the unchanged standard + # allowance cancels, so this asserts a final UC difference, not NI base cash. + # https://www.nidirect.gov.uk/articles/universal-credit-payments-housing + # https://www.nidirect.gov.uk/articles/benefit-cap + # https://www.legislation.gov.uk/nisr/2026/54/regulation/3 + np.testing.assert_allclose( + sim.calculate("uc_housing_costs_element", year), + [5_200, 0], + atol=0.01, + rtol=0, + ) + credit = sim.calculate("universal_credit", year) + assert credit[0] > 0 + np.testing.assert_allclose(credit[0] - credit[1], 5_200, atol=0.01, rtol=0) + + +def test_co_resident_without_rent_liability_is_not_hb_eligible(): + """A co-resident with no rental share has neither liability nor an HB award.""" + year = 2026 + sim = Simulation( + situation={ + "people": { + "person1": { + "age": {year: 70}, + "state_pension": {year: 0}, + "is_household_head": {year: True}, + }, + "person2": {"age": {year: 70}, "state_pension": {year: 0}}, + }, + "benunits": { + "family1": { + "members": ["person1"], + "is_married": {year: False}, + "would_claim_housing_benefit": {year: True}, + "would_claim_uc": {year: False}, + }, + "family2": { + "members": ["person2"], + "is_married": {year: False}, + "would_claim_housing_benefit": {year: True}, + "would_claim_uc": {year: False}, + }, + }, + "households": { + "home": { + "members": ["person1", "person2"], + "country": {year: "ENGLAND"}, + "region": {year: "LONDON"}, + "tenure_type": {year: "RENT_PRIVATELY"}, + "accommodation_type": {year: "MOBILE"}, + "rent": {year: 5_200}, + } + }, + } + ) + # No rent, liability or sharing intermediate is supplied. Existing + # allocation assigns the householder the rent and the co-resident zero; + # issue2930 must honour that result without changing issue2833 allocation. + np.testing.assert_allclose(sim.calculate("benunit_rent", year), [5_200, 0]) + np.testing.assert_array_equal( + sim.calculate("benunit_is_rent_liable", year), [True, False] + ) + assert not sim.calculate("housing_benefit_eligible", year)[1] + assert sim.calculate("housing_benefit", year)[1] == 0 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 e8e95df486..73a9bbe833 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 @@ -30,7 +30,12 @@ class housing_benefit_eligible(Variable): "migration notice's deadline passes without one, whichever legacy " "benefit closed (reg 46(2); NI reg 47(2)). Universal Credit then " "leaves that rent out (uc_housing_costs_element), so the two awards " - "don't pay it twice. The tenure and capital tests still apply, and " + "don't pay it twice. The family must be liable for rent " + "(benunit_is_rent_liable) and either rent, live in social housing, or " + "have qualifying site or mooring payment liability " + "(has_qualifying_site_or_mooring_liability). That supplied payment " + "fact does not replace the age, claim, accommodation or capital " + "conditions. The capital test still applies, and " "would_claim_housing_benefit decides whether the family claims. The " "Secretary of State appointed 1 July 2026 for every " "other working-age award to end without a claim (SI 2025/1148 art. " @@ -54,7 +59,12 @@ class housing_benefit_eligible(Variable): "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/uksi/2006/214/regulation/12", "https://www.legislation.gov.uk/nisr/2006/405/regulation/13", + "https://www.legislation.gov.uk/nisr/2006/406/regulation/13", + "https://www.legislation.gov.uk/uksi/2006/213/regulation/8", + "https://www.legislation.gov.uk/nisr/2006/405/regulation/8", + "https://www.legislation.gov.uk/nisr/2006/406/regulation/8", ) def formula(benunit, period, parameters): @@ -114,15 +124,18 @@ 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)) - # The tenure test: social and private renters both pass it. A local + # Social and private renters pass the payment-type test. 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. + # site payments (reg 12(1); NI reg 13(1)). An owner can have a + # qualifying site or mooring liability too. The supplied payment + # fact opens that route, subject to the same liability and other + # award conditions. LHA_eligible only selects eligible rent. renting = benunit("benunit_is_renting", period) + site_or_mooring = benunit("has_qualifying_site_or_mooring_liability", period) + liable = benunit("benunit_is_rent_liable", period) pension_age_regulations = benunit( "housing_benefit_pension_age_regulations_apply", period ) @@ -135,6 +148,7 @@ def formula(benunit, period, parameters): ) return ( (pension_age | continuing_award | accommodation) - & (social | renting) + & (social | renting | site_or_mooring) + & liable & (capital <= limit) ) diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/housing_costs_element/uc_housing_costs_element.py b/policyengine_uk/variables/gov/dwp/universal_credit/housing_costs_element/uc_housing_costs_element.py index b4efb59b19..ae52bead9b 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/housing_costs_element/uc_housing_costs_element.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/housing_costs_element/uc_housing_costs_element.py @@ -6,9 +6,19 @@ class uc_housing_costs_element(Variable): entity = BenUnit label = "Universal Credit housing costs element" documentation = ( - "The Universal Credit housing costs element for a renter: eligible " - "rent, limited for a private renter by the Local Housing Allowance " - "(uc_LHA_cap), less non-dependant deductions. The Secretary of State " + "The Universal Credit housing costs element for a family liable for " + "rent (benunit_is_rent_liable): eligible rent, limited for a private " + "renter by the Local Housing Allowance (uc_LHA_cap), less " + "non-dependant deductions. An owner with qualifying site or mooring " + "payment liability (has_qualifying_site_or_mooring_liability) uses " + "the existing social rent route when the independently supplied " + "qualifying_site_or_mooring_provider_is_social is true; otherwise " + "the private capped-rent route applies. The existing council or " + "housing association tenure proxy retains priority. The provider " + "fact alone does not open the qualifying-payment route or establish " + "overall benefit eligibility, and it does not change tenure or " + "allocate mixed private and social payments. " + "The Secretary of State " "excludes payments for specified or temporary accommodation from " "rent payments (UC Regs 2013 Sch 1 paras 3(h), 3(i), 3A and 3B; NI: " "SR 2016/216 Sch 1 paras 3(e), 3(ea), 4 and 4A), so the element is " @@ -27,6 +37,24 @@ class uc_housing_costs_element(Variable): "https://www.legislation.gov.uk/nisr/2016/216/schedule/1/paragraph/3", "https://www.legislation.gov.uk/nisr/2016/216/schedule/1/paragraph/4", "https://www.legislation.gov.uk/nisr/2016/216/schedule/1/paragraph/4A", + "https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/2", + "https://www.legislation.gov.uk/nisr/2016/216/schedule/1/paragraph/2", + "https://www.legislation.gov.uk/uksi/2013/376/regulation/25", + "https://www.legislation.gov.uk/nisr/2016/216/regulation/26", + "https://www.legislation.gov.uk/uksi/2013/376/schedule/4/paragraph/2", + "https://www.legislation.gov.uk/uksi/2013/376/schedule/4/paragraph/30", + "https://www.legislation.gov.uk/uksi/2013/376/schedule/4/paragraph/33", + "https://www.legislation.gov.uk/uksi/2013/376/schedule/4/paragraph/34", + "https://www.legislation.gov.uk/nisr/2016/216/schedule/4/paragraph/2", + "https://www.legislation.gov.uk/nisr/2016/216/schedule/4/paragraph/29", + "https://www.legislation.gov.uk/nisr/2016/216/schedule/4/paragraph/32", + "https://www.legislation.gov.uk/nisr/2016/216/schedule/4/paragraph/33", + "https://www.legislation.gov.uk/uksi/2013/376/schedule/4/paragraph/20", + "https://www.legislation.gov.uk/uksi/2013/376/schedule/4/paragraph/22", + "https://www.legislation.gov.uk/uksi/2013/376/schedule/4/paragraph/25", + "https://www.legislation.gov.uk/nisr/2016/216/schedule/4/paragraph/19", + "https://www.legislation.gov.uk/nisr/2016/216/schedule/4/paragraph/21", + "https://www.legislation.gov.uk/nisr/2016/216/schedule/4/paragraph/24", ) def formula(benunit, period, parameters): @@ -34,16 +62,28 @@ def formula(benunit, period, parameters): # whatever the household's tenure (UC Regs 2013 Sch 4 para 20). tenure_type = benunit("benunit_tenure_type", period) tenure_types = tenure_type.possible_values + site_or_mooring = benunit("has_qualifying_site_or_mooring_liability", period) + social_provider = benunit( + "qualifying_site_or_mooring_provider_is_social", period + ) rent = benunit("benunit_rent", period) # Universal Credit has its own monthly national maximum, which is # set independently of the weekly Housing Benefit one. rent_cap = benunit("uc_LHA_cap", period) capped_rent_amount = min_(rent_cap, rent) + # Qualifying site and mooring payments are rent payments even where + # the family owns its home (Sch 1 para 2(c)-(d); NI: the same). + # Their provider is established separately under Sch 4 para 2: + # social payments use Part 5 (GB para 30; NI para 29), while private + # payments keep the LHA cap (GB paras 20, 22, 25; NI 19, 21, 24). + # Keep the existing social-tenure proxy first; the provider fact + # alone cannot admit an otherwise non-qualifying owner payment. max_housing_costs = select( [ (tenure_type == tenure_types.RENT_FROM_COUNCIL) - | (tenure_type == tenure_types.RENT_FROM_HA), - tenure_type == tenure_types.RENT_PRIVATELY, + | (tenure_type == tenure_types.RENT_FROM_HA) + | (site_or_mooring & social_provider), + (tenure_type == tenure_types.RENT_PRIVATELY) | site_or_mooring, ], [rent, capped_rent_amount], default=0, @@ -53,5 +93,6 @@ def formula(benunit, period, parameters): # payments (Sch 1 para 3(h) and (i); NI: SR 2016/216 Sch 1 para 3(e) # and (ea)), so they bring no housing costs element. excluded = benunit("in_specified_or_temporary_accommodation", period) + liable = benunit("benunit_is_rent_liable", period) element = max_(max_housing_costs - non_dependent_deductions, 0) - return where(excluded, 0, element) + return where(liable & ~excluded, element, 0) diff --git a/policyengine_uk/variables/household/consumption/rent/has_qualifying_site_or_mooring_liability.py b/policyengine_uk/variables/household/consumption/rent/has_qualifying_site_or_mooring_liability.py new file mode 100644 index 0000000000..1a65eccc6e --- /dev/null +++ b/policyengine_uk/variables/household/consumption/rent/has_qualifying_site_or_mooring_liability.py @@ -0,0 +1,36 @@ +from policyengine_uk.model_api import * + + +class has_qualifying_site_or_mooring_liability(Variable): + value_type = bool + entity = BenUnit + label = "Liable for qualifying site or mooring payments" + documentation = ( + "Whether this family has an actual or prescribed deemed liability " + "for qualifying mooring charges for a houseboat, or site payments " + "for a caravan or mobile home, occupied as its home. Supply this " + "payment-type and liability fact after establishing that the payment " + "qualifies under the housing-payment rules outside the model. " + "It does not establish " + "overall benefit eligibility: programme-specific age, claim and " + "accommodation conditions still apply. Enter the qualifying amount " + "in benunit_rent; benunit_is_rent_liable remains a separate liability " + "condition. For Universal Credit, independently supply " + "qualifying_site_or_mooring_provider_is_social to identify a " + "social provider for this amount; ownership does not identify " + "the provider. This input covers site and mooring payments only, not " + "ordinary mortgage payments or other owner costs. It does not " + "determine tenancy, rent allocation or the household head's liability." + ) + definition_period = YEAR + default_value = False + reference = ( + "https://www.legislation.gov.uk/uksi/2006/213/regulation/12", + "https://www.legislation.gov.uk/uksi/2006/214/regulation/12", + "https://www.legislation.gov.uk/nisr/2006/405/regulation/13", + "https://www.legislation.gov.uk/nisr/2006/406/regulation/13", + "https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/2", + "https://www.legislation.gov.uk/nisr/2016/216/schedule/1/paragraph/2", + "https://www.legislation.gov.uk/uksi/2013/376/regulation/25", + "https://www.legislation.gov.uk/nisr/2016/216/regulation/26", + ) diff --git a/policyengine_uk/variables/household/consumption/rent/qualifying_site_or_mooring_provider_is_social.py b/policyengine_uk/variables/household/consumption/rent/qualifying_site_or_mooring_provider_is_social.py new file mode 100644 index 0000000000..d12d61542f --- /dev/null +++ b/policyengine_uk/variables/household/consumption/rent/qualifying_site_or_mooring_provider_is_social.py @@ -0,0 +1,37 @@ +from policyengine_uk.model_api import * + + +class qualifying_site_or_mooring_provider_is_social(Variable): + value_type = bool + entity = BenUnit + label = "Qualifying site or mooring provider is social" + documentation = ( + "Whether the qualifying site or mooring amount entered in " + "benunit_rent is owed directly to a provider of social housing " + "under the applicable Universal Credit rules. Establish this " + "provider classification outside the model. In Great Britain, " + "use the Schedule 4 paragraph 2 definition, including the " + "social-housing condition for a profit-making registered provider. " + "In Northern Ireland, the provider must be the Housing Executive " + "or a registered housing association. This fact applies only " + "alongside has_qualifying_site_or_mooring_liability. True then " + "selects the existing UC social rent route; this fact alone does not " + "establish a qualifying payment, actual or deemed liability, or " + "overall benefit eligibility. benunit_is_rent_liable remains " + "a separate condition. False retains the existing private capped " + "route for a qualifying owner. The existing council or housing " + "association tenure proxy retains priority. Neither ownership, " + "MOBILE accommodation nor the household head determines this " + "provider fact. It does not change tenure, tenancy, rent allocation " + "or size criteria, or allocate mixed private and social payments." + ) + definition_period = YEAR + default_value = False + reference = ( + "https://www.legislation.gov.uk/uksi/2013/376/schedule/4/paragraph/2", + "https://www.legislation.gov.uk/uksi/2013/376/schedule/4/paragraph/20", + "https://www.legislation.gov.uk/uksi/2013/376/schedule/4/paragraph/30", + "https://www.legislation.gov.uk/nisr/2016/216/schedule/4/paragraph/2", + "https://www.legislation.gov.uk/nisr/2016/216/schedule/4/paragraph/19", + "https://www.legislation.gov.uk/nisr/2016/216/schedule/4/paragraph/29", + )