From 855dbad252ed441261520f29a9bed1a4646253d0 Mon Sep 17 00:00:00 2001 From: juaristi22 <127882282+juaristi22@users.noreply.github.com> Date: Wed, 25 Nov 2026 10:58:49 +0000 Subject: [PATCH] Count eligible looked-after children in Scottish Council Tax Reduction --- changelog.d/2935.fixed.md | 1 + ...looked_after_exclusion_is_foster_only.yaml | 13 + .../scottish_looked_after_children.yaml | 546 ++++++++++++++++++ ...test_scottish_ctr_looked_after_children.py | 65 +++ ..._young_person_for_council_tax_reduction.py | 107 ++-- ...h_council_tax_reduction_child_placement.py | 42 ++ 6 files changed, 725 insertions(+), 49 deletions(-) create mode 100644 changelog.d/2935.fixed.md create mode 100644 policyengine_uk/parameters/gov/local_authorities/scotland/council_tax_reduction/working_age/looked_after_exclusion_is_foster_only.yaml create mode 100644 policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/scottish_looked_after_children.yaml create mode 100644 policyengine_uk/tests/test_scottish_ctr_looked_after_children.py create mode 100644 policyengine_uk/variables/household/demographic/scottish_council_tax_reduction_child_placement.py diff --git a/changelog.d/2935.fixed.md b/changelog.d/2935.fixed.md new file mode 100644 index 0000000000..62305ad54b --- /dev/null +++ b/changelog.d/2935.fixed.md @@ -0,0 +1 @@ +Corrected Scottish working-age Council Tax Reduction child tests for specified looked-after placements under the 2022 and 2024 rules. diff --git a/policyengine_uk/parameters/gov/local_authorities/scotland/council_tax_reduction/working_age/looked_after_exclusion_is_foster_only.yaml b/policyengine_uk/parameters/gov/local_authorities/scotland/council_tax_reduction/working_age/looked_after_exclusion_is_foster_only.yaml new file mode 100644 index 0000000000..40e0cd523e --- /dev/null +++ b/policyengine_uk/parameters/gov/local_authorities/scotland/council_tax_reduction/working_age/looked_after_exclusion_is_foster_only.yaml @@ -0,0 +1,13 @@ +description: Scotland's working-age Council Tax Reduction scheme excludes only foster placements under its looked-after-child rule if this is true, and otherwise excepts parent, parental responsibility and approved kinship arrangements from the looked-after exclusion. +values: + 2022-04-01: false + 2024-10-31: true +metadata: + unit: bool + period: year + label: Scotland working-age CTR foster-only looked-after exclusion + reference: + - title: The Council Tax Reduction (Scotland) Regulations 2021 reg. 7(8), in force 1 April 2022 + href: https://www.legislation.gov.uk/ssi/2021/249/regulation/7/2022-04-01 + - title: The Council Tax Reduction (Scotland) Amendment (No. 2) Regulations 2024 regs. 1 and 3(a) + href: https://www.legislation.gov.uk/ssi/2024/230/made diff --git a/policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/scottish_looked_after_children.yaml b/policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/scottish_looked_after_children.yaml new file mode 100644 index 0000000000..f146f4ed1b --- /dev/null +++ b/policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/scottish_looked_after_children.yaml @@ -0,0 +1,546 @@ +# SSI 2021/249 reg. 7(8), as in force from 1 April 2022, keeps children +# placed with a parent, a person with parental responsibility or an approved +# kinship carer in the applicant's family. SSI 2024/230 regs. 1 and 3 replace +# that provision from 31 October 2024 with an exclusion for foster placements. +# https://www.legislation.gov.uk/ssi/2021/249/regulation/7/2022-04-01 +# https://www.legislation.gov.uk/ssi/2024/230/regulation/3/made +# The annual model samples ordinary government parameters on 30 April, so +# annual 2024 keeps the earlier rule and annual 2025 uses the amended rule. +# Parent/parental-responsibility placements leave the existing looked-after +# input false, following its documented Universal Credit input convention. +# UNSPECIFIED preserves the existing input's treatment as a compatibility +# fallback; it does not classify every such child as a foster placement. + +- name: Case 1, an approved kinship placement increases a working Scottish applicant's child allowance and reduction. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 35 + is_household_head: true + is_claimant_or_partner: true + employment_income: 10_000 + weekly_hours: 15 + person2: + age: 8 + is_household_head: false + is_claimant_or_partner: false + is_looked_after_by_local_authority: true + scottish_council_tax_reduction_child_placement: APPROVED_KINSHIP_CARER + benunits: + benunit: + members: [person1, person2] + would_claim_uc: false + would_claim_council_tax_reduction: true + households: + household: + members: [person1, person2] + country: SCOTLAND + local_authority: CITY_OF_EDINBURGH + council_tax: 1_800 + output: + # Income below the applicable amount gives full liability (reg. 13). + council_tax_reduction: 1_800 + is_looked_after_child: [false, true] + is_child_or_young_person_for_council_tax_reduction: [false, true] + is_council_tax_reduction_lone_parent: true + council_tax_reduction_pensioner: false + # SSI 2026/56 reg. 14: 109.85 * 52 for the child and 95.55 * 52 + # for the applicant. The family premium for a new claim is zero. + council_tax_reduction_working_age_child_amounts: 5_712.20 + council_tax_reduction_working_age_personal_allowance: 4_968.60 + council_tax_reduction_working_age_applicable_amount: 10_680.80 + # Wages fall below the personal allowance and NI primary threshold. + # Fifteen hours fails the 16-hour additional-disregard work condition. + income_tax: [0, 0] + national_insurance: [0, 0] + # SSI 2021/249 Sch. 3 para. 5: 25 * 52; income = 10,000 - 1,300. + council_tax_reduction_working_age_earnings_disregard: 1_300 + council_tax_reduction_working_age_applicable_income: 8_700 + council_tax_reduction_non_dep_deductions: 0 + # The Scottish placement input does not change Universal Credit. + is_child_or_qualifying_young_person_for_universal_credit: [false, false] + uc_child_index: [-1, -1] + uc_individual_child_element: [0, 0] + uc_child_element: 0 + +- name: Case 2, a foster placement leaves the same Scottish applicant single and tapers the reduction. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 35 + is_household_head: true + is_claimant_or_partner: true + employment_income: 10_000 + weekly_hours: 15 + person2: + age: 8 + is_household_head: false + is_claimant_or_partner: false + is_looked_after_by_local_authority: true + scottish_council_tax_reduction_child_placement: FOSTER_CARER + benunits: + benunit: + members: [person1, person2] + would_claim_uc: false + would_claim_council_tax_reduction: true + households: + household: + members: [person1, person2] + country: SCOTLAND + local_authority: CITY_OF_EDINBURGH + council_tax: 1_800 + output: + # Reg. 13: 1,800 - (9,740 - 4,968.60) * 0.20 = 845.72. + council_tax_reduction: 845.72 + is_child_or_young_person_for_council_tax_reduction: [false, false] + is_council_tax_reduction_lone_parent: false + council_tax_reduction_working_age_child_amounts: 0 + # SSI 2026/56 reg. 14: 95.55 * 52 for a single applicant aged 35. + council_tax_reduction_working_age_personal_allowance: 4_968.60 + council_tax_reduction_working_age_applicable_amount: 4_968.60 + income_tax: [0, 0] + national_insurance: [0, 0] + # Sch. 3 para. 11: 5 * 52; income = 10,000 - 260. + council_tax_reduction_working_age_earnings_disregard: 260 + council_tax_reduction_working_age_applicable_income: 9_740 + council_tax_reduction_non_dep_deductions: 0 + +- name: Case 3, another looked-after placement counts in Scotland after the foster-only amendment. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 35 + is_household_head: true + is_claimant_or_partner: true + employment_income: 10_000 + weekly_hours: 15 + person2: + age: 8 + is_household_head: false + is_claimant_or_partner: false + is_looked_after_by_local_authority: true + scottish_council_tax_reduction_child_placement: OTHER_LOOKED_AFTER + benunits: + benunit: + members: [person1, person2] + would_claim_uc: false + would_claim_council_tax_reduction: true + households: + household: + members: [person1, person2] + country: SCOTLAND + local_authority: CITY_OF_EDINBURGH + council_tax: 1_800 + output: + # The same arithmetic as Case 1 gives the full reduction. + council_tax_reduction: 1_800 + is_child_or_young_person_for_council_tax_reduction: [false, true] + is_council_tax_reduction_lone_parent: true + # The same arithmetic as Case 1 follows from the same family amounts. + council_tax_reduction_working_age_child_amounts: 5_712.20 + council_tax_reduction_working_age_applicable_amount: 10_680.80 + council_tax_reduction_working_age_earnings_disregard: 1_300 + council_tax_reduction_working_age_applicable_income: 8_700 + +- name: Case 4, an unspecified placement preserves the existing looked-after exclusion and cash award. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 35 + is_household_head: true + is_claimant_or_partner: true + employment_income: 10_000 + weekly_hours: 15 + person2: + age: 8 + is_household_head: false + is_claimant_or_partner: false + is_looked_after_by_local_authority: true + scottish_council_tax_reduction_child_placement: UNSPECIFIED + benunits: + benunit: + members: [person1, person2] + would_claim_uc: false + would_claim_council_tax_reduction: true + households: + household: + members: [person1, person2] + country: SCOTLAND + local_authority: CITY_OF_EDINBURGH + council_tax: 1_800 + output: + # The compatibility fallback retains Case 2's tapered award. + council_tax_reduction: 845.72 + is_child_or_young_person_for_council_tax_reduction: [false, false] + is_council_tax_reduction_lone_parent: false + # The compatibility fallback retains Case 2's single-applicant amounts. + council_tax_reduction_working_age_child_amounts: 0 + council_tax_reduction_working_age_applicable_amount: 4_968.60 + council_tax_reduction_working_age_earnings_disregard: 260 + council_tax_reduction_working_age_applicable_income: 9_740 + +- name: Case 5, omitting the new input preserves the existing Scottish looked-after exclusion. + period: 2026 + input: + people: + person1: {age: 35, is_claimant_or_partner: true} + person2: + age: 8 + is_claimant_or_partner: false + is_looked_after_by_local_authority: true + benunits: + benunit: {members: [person1, person2], would_claim_uc: false} + households: + household: {members: [person1, person2], country: SCOTLAND} + output: + is_child_or_young_person_for_council_tax_reduction: [false, false] + is_council_tax_reduction_lone_parent: false + +- name: Case 6, the approved kinship exception applies in the first annual year of the 2021 regulations. + period: 2022 + input: + people: + person1: {age: 35, is_claimant_or_partner: true} + person2: + age: 8 + is_claimant_or_partner: false + is_looked_after_by_local_authority: true + scottish_council_tax_reduction_child_placement: APPROVED_KINSHIP_CARER + benunits: + benunit: {members: [person1, person2], would_claim_uc: false} + households: + household: {members: [person1, person2], country: SCOTLAND} + output: + is_child_or_young_person_for_council_tax_reduction: [false, true] + is_council_tax_reduction_lone_parent: true + +- name: Case 7, an approved kinship placement counts before the 2024 amendment. + period: 2023 + input: + people: + person1: {age: 35, is_claimant_or_partner: true} + person2: + age: 8 + is_claimant_or_partner: false + is_looked_after_by_local_authority: true + scottish_council_tax_reduction_child_placement: APPROVED_KINSHIP_CARER + benunits: + benunit: {members: [person1, person2], would_claim_uc: false} + households: + household: {members: [person1, person2], country: SCOTLAND} + output: + is_child_or_young_person_for_council_tax_reduction: [false, true] + is_council_tax_reduction_lone_parent: true + +- name: Case 8, the new placement input leaves Scotland's pre-2022 Child Benefit route unchanged. + period: 2021 + input: + people: + person1: {age: 35, is_claimant_or_partner: true} + person2: + age: 8 + is_claimant_or_partner: false + is_looked_after_by_local_authority: true + scottish_council_tax_reduction_child_placement: APPROVED_KINSHIP_CARER + benunits: + benunit: {members: [person1, person2], would_claim_uc: false} + households: + household: {members: [person1, person2], country: SCOTLAND} + output: + is_child_or_young_person_for_council_tax_reduction: [false, false] + is_council_tax_reduction_lone_parent: false + +- name: Case 9, another looked-after placement is excluded under the 2023 rule. + period: 2023 + input: + people: + person1: {age: 35, is_claimant_or_partner: true} + person2: + age: 8 + is_claimant_or_partner: false + is_looked_after_by_local_authority: true + scottish_council_tax_reduction_child_placement: OTHER_LOOKED_AFTER + benunits: + benunit: {members: [person1, person2], would_claim_uc: false} + households: + household: {members: [person1, person2], country: SCOTLAND} + output: + is_child_or_young_person_for_council_tax_reduction: [false, false] + is_council_tax_reduction_lone_parent: false + +- name: Case 10, annual 2024 keeps the looked-after exclusion sampled on 30 April. + period: 2024 + input: + people: + person1: {age: 35, is_claimant_or_partner: true} + person2: + age: 8 + is_claimant_or_partner: false + is_looked_after_by_local_authority: true + scottish_council_tax_reduction_child_placement: OTHER_LOOKED_AFTER + benunits: + benunit: {members: [person1, person2], would_claim_uc: false} + households: + household: {members: [person1, person2], country: SCOTLAND} + output: + is_child_or_young_person_for_council_tax_reduction: [false, false] + is_council_tax_reduction_lone_parent: false + +- name: Case 11, annual 2025 applies the foster-only amendment to another looked-after placement. + period: 2025 + input: + people: + person1: {age: 35, is_claimant_or_partner: true} + person2: + age: 8 + is_claimant_or_partner: false + is_looked_after_by_local_authority: true + scottish_council_tax_reduction_child_placement: OTHER_LOOKED_AFTER + benunits: + benunit: {members: [person1, person2], would_claim_uc: false} + households: + household: {members: [person1, person2], country: SCOTLAND} + output: + is_child_or_young_person_for_council_tax_reduction: [false, true] + is_council_tax_reduction_lone_parent: true + +- name: Case 12, a foster placement is excluded before the amendment as well. + period: 2023 + input: + people: + person1: {age: 35, is_claimant_or_partner: true} + person2: + age: 8 + is_claimant_or_partner: false + is_looked_after_by_local_authority: true + scottish_council_tax_reduction_child_placement: FOSTER_CARER + benunits: + benunit: {members: [person1, person2], would_claim_uc: false} + households: + household: {members: [person1, person2], country: SCOTLAND} + output: + is_child_or_young_person_for_council_tax_reduction: [false, false] + is_council_tax_reduction_lone_parent: false + +- name: Case 13, the unspecified compatibility fallback also retains the 2023 exclusion. + period: 2023 + input: + people: + person1: {age: 35, is_claimant_or_partner: true} + person2: + age: 8 + is_claimant_or_partner: false + is_looked_after_by_local_authority: true + scottish_council_tax_reduction_child_placement: UNSPECIFIED + benunits: + benunit: {members: [person1, person2], would_claim_uc: false} + households: + household: {members: [person1, person2], country: SCOTLAND} + output: + is_child_or_young_person_for_council_tax_reduction: [false, false] + is_council_tax_reduction_lone_parent: false + +- name: Case 14, a parent or person with parental responsibility retains a child before the amendment. + period: 2023 + input: + people: + person1: {age: 35, is_claimant_or_partner: true} + person2: + age: 8 + is_claimant_or_partner: false + is_looked_after_by_local_authority: false + scottish_council_tax_reduction_child_placement: PARENT_OR_PARENTAL_RESPONSIBILITY + benunits: + benunit: {members: [person1, person2], would_claim_uc: false} + households: + household: {members: [person1, person2], country: SCOTLAND} + output: + is_child_or_young_person_for_council_tax_reduction: [false, true] + is_council_tax_reduction_lone_parent: true + is_child_or_qualifying_young_person_for_universal_credit: [false, true] + +- name: Case 15, a parent or person with parental responsibility retains a child after the amendment. + period: 2026 + input: + people: + person1: {age: 35, is_claimant_or_partner: true} + person2: + age: 8 + is_claimant_or_partner: false + is_looked_after_by_local_authority: false + scottish_council_tax_reduction_child_placement: PARENT_OR_PARENTAL_RESPONSIBILITY + benunits: + benunit: {members: [person1, person2], would_claim_uc: false} + households: + household: {members: [person1, person2], country: SCOTLAND} + output: + is_child_or_young_person_for_council_tax_reduction: [false, true] + is_council_tax_reduction_lone_parent: true + is_child_or_qualifying_young_person_for_universal_credit: [false, true] + +- name: Case 16, an ordinary child retains the existing treatment with an unspecified placement. + period: 2026 + input: + people: + person1: {age: 35, is_claimant_or_partner: true} + person2: + age: 8 + is_claimant_or_partner: false + is_looked_after_by_local_authority: false + scottish_council_tax_reduction_child_placement: UNSPECIFIED + benunits: + benunit: {members: [person1, person2], would_claim_uc: false} + households: + household: {members: [person1, person2], country: SCOTLAND} + output: + is_child_or_young_person_for_council_tax_reduction: [false, true] + is_council_tax_reduction_lone_parent: true + +- name: Case 17, the Scottish kinship input does not change the Welsh child definition. + period: 2026 + input: + people: + person1: {age: 35, is_claimant_or_partner: true} + person2: + age: 8 + is_claimant_or_partner: false + is_looked_after_by_local_authority: true + scottish_council_tax_reduction_child_placement: APPROVED_KINSHIP_CARER + benunits: + benunit: {members: [person1, person2], would_claim_uc: false} + households: + household: {members: [person1, person2], country: WALES} + output: + is_child_or_young_person_for_council_tax_reduction: [false, false] + is_council_tax_reduction_lone_parent: false + +- name: Case 18, the Scottish pension-age route keeps its existing looked-after exclusion. + period: 2026 + input: + people: + person1: {age: 70, is_claimant_or_partner: true} + person2: + age: 8 + is_claimant_or_partner: false + is_looked_after_by_local_authority: true + scottish_council_tax_reduction_child_placement: APPROVED_KINSHIP_CARER + benunits: + benunit: {members: [person1, person2], would_claim_uc: false} + households: + household: {members: [person1, person2], country: SCOTLAND} + output: + council_tax_reduction_pensioner: true + is_child_or_young_person_for_council_tax_reduction: [false, false] + is_council_tax_reduction_lone_parent: false + +- name: Case 19, a 17-year-old in non-advanced education qualifies under the Scottish kinship exception. + period: 2026 + input: + people: + person1: {age: 35, is_claimant_or_partner: true} + person2: + age: 17 + # The no-education route ended on 1 September 2025. + date_of_birth: 20090201 + is_claimant_or_partner: false + current_education: UPPER_SECONDARY + age_started_or_accepted_current_education_or_training: 16 + is_looked_after_by_local_authority: true + scottish_council_tax_reduction_child_placement: APPROVED_KINSHIP_CARER + benunits: + benunit: {members: [person1, person2], would_claim_uc: false} + households: + household: {members: [person1, person2], country: SCOTLAND} + output: + is_qualifying_young_person_for_universal_credit: [false, true] + is_child_or_qualifying_young_person_for_universal_credit: [false, false] + is_child_or_young_person_for_council_tax_reduction: [false, true] + is_council_tax_reduction_lone_parent: true + +- name: Case 20, a looked-after placement does not make a 17-year-old outside education or training a qualifying young person. + period: 2026 + input: + people: + person1: {age: 35, is_claimant_or_partner: true} + person2: + age: 17 + # The no-education route ended on 1 September 2025. + date_of_birth: 20090201 + is_claimant_or_partner: false + current_education: NOT_IN_EDUCATION + is_in_approved_training: false + is_looked_after_by_local_authority: true + scottish_council_tax_reduction_child_placement: OTHER_LOOKED_AFTER + benunits: + benunit: {members: [person1, person2], would_claim_uc: false} + households: + household: {members: [person1, person2], country: SCOTLAND} + output: + is_qualifying_young_person_for_universal_credit: [false, false] + is_child_or_young_person_for_council_tax_reduction: [false, false] + is_council_tax_reduction_lone_parent: false + +- name: Case 21, a kinship carer receives positive standard-only Universal Credit without a child element. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 35 + is_household_head: true + is_claimant_or_partner: true + person2: + age: 8 + is_household_head: false + is_claimant_or_partner: false + is_looked_after_by_local_authority: true + scottish_council_tax_reduction_child_placement: APPROVED_KINSHIP_CARER + benunits: + benunit: + members: [person1, person2] + would_claim_uc: true + households: + household: + members: [person1, person2] + country: SCOTLAND + local_authority: CITY_OF_EDINBURGH + output: + claims_universal_credit: true + is_looked_after_child: [false, true] + is_child_or_qualifying_young_person_for_universal_credit: [false, false] + uc_child_index: [-1, -1] + uc_individual_child_element: [0, 0] + uc_child_element: 0 + # The 2026-27 single claimant aged 25+ amount is 424.90 a month. + # No earnings, rent, other income, capital or deductions: 424.90 * 12. + uc_standard_allowance: 5_098.80 + universal_credit: 5_098.80 + +- name: Case 22, an approved kinship input does not make a claimant their own qualifying young person. + period: 2026 + input: + people: + person1: + age: 17 + date_of_birth: 20090201 + is_claimant_or_partner: true + current_education: UPPER_SECONDARY + age_started_or_accepted_current_education_or_training: 16 + is_looked_after_by_local_authority: true + scottish_council_tax_reduction_child_placement: APPROVED_KINSHIP_CARER + benunits: + benunit: {members: [person1], would_claim_uc: false} + households: + household: {members: [person1], country: SCOTLAND} + output: + is_qualifying_young_person_for_universal_credit: true + is_child_or_young_person_for_council_tax_reduction: false + is_council_tax_reduction_lone_parent: false diff --git a/policyengine_uk/tests/test_scottish_ctr_looked_after_children.py b/policyengine_uk/tests/test_scottish_ctr_looked_after_children.py new file mode 100644 index 0000000000..fcbc58d080 --- /dev/null +++ b/policyengine_uk/tests/test_scottish_ctr_looked_after_children.py @@ -0,0 +1,65 @@ +"""Statutory and annual boundaries for Scottish CTR looked-after placements.""" + +from pathlib import Path + +import policyengine_uk +import pytest +from policyengine_core.parameters import ParameterNode +from policyengine_uk import CountryTaxBenefitSystem + + +@pytest.fixture(scope="module") +def raw_looked_after_exclusion(): + """Read the dated YAML before fiscal-year conversion changes its timeline.""" + parameters = ParameterNode( + directory_path=str(Path(policyengine_uk.__file__).parent / "parameters") + ) + working_age = ( + parameters.gov.local_authorities.scotland.council_tax_reduction.working_age + ) + return working_age.looked_after_exclusion_is_foster_only + + +@pytest.mark.parametrize( + "date, expected", + [ + ("2022-04-01", False), + ("2024-10-30", False), + ("2024-10-31", True), + ], +) +def test_foster_only_exclusion_starts_on_statutory_date( + raw_looked_after_exclusion, date, expected +): + """SSI 2024/230 regs. 1 and 3 amend reg. 7(8) on 31 October 2024.""" + assert raw_looked_after_exclusion(date) == expected + + +@pytest.fixture(scope="module") +def uk_system(): + return CountryTaxBenefitSystem() + + +@pytest.mark.parametrize( + "date, expected", + [ + ("2022-01-01", False), + ("2023-01-01", False), + ("2024-01-01", False), + ("2024-12-31", False), + ("2025-01-01", True), + ("2026-01-01", True), + ], +) +def test_annual_rule_uses_the_existing_april_sampling(uk_system, date, expected): + """Annual 2024 samples before the amendment; annual 2025 samples after it. + + Ordinary government parameters take their 30 April value for the whole + calendar-labelled year. This preserves that approximation without moving + the raw statutory commencement date or introducing an intrayear split. + """ + parameters = uk_system.get_parameters_at_instant(date) + working_age = ( + parameters.gov.local_authorities.scotland.council_tax_reduction.working_age + ) + assert working_age.looked_after_exclusion_is_foster_only == expected diff --git a/policyengine_uk/variables/gov/local_authorities/council_tax_reduction/is_child_or_young_person_for_council_tax_reduction.py b/policyengine_uk/variables/gov/local_authorities/council_tax_reduction/is_child_or_young_person_for_council_tax_reduction.py index 0e66c1e420..06d73c22b3 100644 --- a/policyengine_uk/variables/gov/local_authorities/council_tax_reduction/is_child_or_young_person_for_council_tax_reduction.py +++ b/policyengine_uk/variables/gov/local_authorities/council_tax_reduction/is_child_or_young_person_for_council_tax_reduction.py @@ -5,47 +5,42 @@ class is_child_or_young_person_for_council_tax_reduction(Variable): """Child or young person in the applicant's family for Council Tax Reduction. - Every scheme defines a child as a person under 16. They differ on the - young person: + Every scheme defines a child as a person under 16. Scotland's working-age + scheme from 1 April 2022 uses the Universal Credit child and qualifying + young person tests (SSI 2021/249 regs. 4 and 6), with its own looked-after + placement rule in reg. 7. The qualifying young person test retains the + model's reading of UC reg. 5 as including SI 2014/1230 reg. 28(b)'s + existing-benefit modification under Interpretation Act 1978 ss. 20(2) and + 23(1). Whether the Scottish reference carries that modification remains + unsettled; this variable leaves the existing interpretation unchanged. - - Scotland's working-age scheme, from 1 April 2022, uses the Universal - Credit child and the qualifying young person of UC Regs 2013 reg. 5 - (Council Tax Reduction (Scotland) Regulations 2021 reg. 6(1)). The - Secretary of State has reg. 5(5) apply as if it also named an existing - benefit, for a person entitled to one (SI 2014/1230 reg. 28(b)). Under - Interpretation Act 1978 s. 20(2), which s. 23(1) applies to subordinate - legislation, the model reads the Scottish Ministers' reference to reg. 5 - as including that modification. So a person who is entitled to and - receives Income Support, Housing Benefit, a tax credit, income-related - ESA or income-based JSA is not a young person here, and the formula - reads is_child_or_qualifying_young_person_for_universal_credit, which - applies is_qualifying_young_person_for_universal_credit. The law is - unsettled on whether the Scottish reference carries reg. 28(b). The - applicant is responsible for a child or young person who normally lives - with them, never for one they live with as a couple, and no one is - responsible for one placed with a foster carer (reg. 7). - - England, Wales and Scotland's pension-age scheme use the Child Benefit - qualifying young person (SI 2012/2885 reg. 2; WSI 2013/3029 reg. 2; SSI - 2012/319 reg. 4), as Housing Benefit does. + Until 30 October 2024, reg. 7(8) excludes a looked-after child unless placed + with, or living with, a parent, a person with parental responsibility or + an approved kinship carer. From 31 October 2024, SSI 2024/230 excludes only + a child placed with a foster carer under the Looked After Children + (Scotland) Regulations 2009. The applicant's normal responsibility and the + existing claimant-or-partner screen still apply. - The scheme follows the family's own pensioner status - (council_tax_reduction_pensioner). + scottish_council_tax_reduction_child_placement refines only an existing + is_looked_after_child flag. Foster, approved kinship and other looked-after + arrangements require the existing looked-after input to be true. Parent + or parental-responsibility placements keep that input false under its + Universal Credit exception convention. The new input never changes + Universal Credit or the global looked-after flags. UNSPECIFIED keeps the + existing exclusion for a flagged child as a compatibility fallback; it + does not establish that an unknown arrangement is a foster placement. - Both branches leave out every child or young person looked after by a - local authority, as the Universal Credit and legacy flags do. That is - broader than Scotland's working-age rule, which names only a child or - young person placed with a foster carer under the Looked After Children - (Scotland) Regulations 2009 (reg. 7(8)). The Child Benefit branch also - leaves out a child placed for adoption with the applicant or partner - (SI 2012/2885 reg. 8(2); SI 2012/2886 Sch para. 8(2); WSI 2013/3029 - reg. 8(2); SSI 2012/319 reg. 11(2)). The Universal Credit branch keeps - them, since the Universal Credit flag has no adoption rule and, of - children, leaves out only those looked after (is_looked_after_child). - So on Scotland's working-age scheme from 1 April 2022 the applicant is - responsible for a child placed for adoption who normally lives with - them (reg. 7(2)). - Before 1 April 2022 Scotland's working-age scheme follows the Child - Benefit branch. + The dated rule follows the model's ordinary government-parameter + conversion, which samples 30 April for each annual label. Annual 2024 + therefore retains the earlier rule and annual 2025 uses the amended rule; + there is no within-year split of the annual child flag. + + England, Wales, Scotland's pension-age scheme and Scotland's working-age + scheme before 1 April 2022 retain the Child Benefit qualifying-young-person + and legacy household tests. That branch excludes looked-after children and + children placed for adoption. The Scottish working-age branch from April + 2022 retains children placed for adoption, as the Universal Credit child + tests do, while applying Scotland's own looked-after placement rule. """ value_type = bool @@ -60,6 +55,7 @@ class is_child_or_young_person_for_council_tax_reduction(Variable): "https://www.legislation.gov.uk/ukpga/1978/30/section/23", "https://www.legislation.gov.uk/ssi/2021/249/regulation/6", "https://www.legislation.gov.uk/ssi/2021/249/regulation/7", + "https://www.legislation.gov.uk/ssi/2024/230/made", "https://www.legislation.gov.uk/ssi/2012/319/regulation/4", "https://www.legislation.gov.uk/uksi/2012/2885/regulation/2", "https://www.legislation.gov.uk/wsi/2013/3029/regulation/2", @@ -74,15 +70,28 @@ def formula(person, period, parameters): & ~person.benunit("council_tax_reduction_pensioner", period) & p.young_person_follows_universal_credit ) - # SSI 2021/249 regs 4, 6 and 7: a child, a person under 16 (reg. 4(1)), or a - # qualifying young person under UC Regs reg. 5 (reg. 6(1)). The model reads - # that reference as including SI 2014/1230 reg. 28(b)'s modification of reg. - # 5(5) (Interpretation Act 1978 s. 20(2), applied by s. 23(1)), so it reads - # the Universal Credit flag, which applies reg. 28. That flag already leaves - # out a child looked after by a local authority, which only a person under 18 - # can be (is_looked_after_child). - universal_credit = person( - "is_child_or_qualifying_young_person_for_universal_credit", period - ) & ~person("is_claimant_or_partner", period) + # Reuse the UC age and qualifying-young-person tests, applying + # Scotland's reg. 7 placement exclusion in place of UC reg. 4(6)(a). + child_or_young_person = person( + "is_child_for_universal_credit", period + ) | person("is_qualifying_young_person_for_universal_credit", period) + placement = person("scottish_council_tax_reduction_child_placement", period) + placement_types = placement.possible_values + earlier_exception = (placement == placement_types.APPROVED_KINSHIP_CARER) | ( + placement == placement_types.PARENT_OR_PARENTAL_RESPONSIBILITY + ) + foster_or_unspecified = (placement == placement_types.FOSTER_CARER) | ( + placement == placement_types.UNSPECIFIED + ) + excluded_placement = where( + p.looked_after_exclusion_is_foster_only, + foster_or_unspecified, + ~earlier_exception, + ) + scottish_child = ( + child_or_young_person + & ~person("is_claimant_or_partner", period) + & ~(person("is_looked_after_child", period) & excluded_placement) + ) child_benefit = person("is_child_or_young_person_for_legacy_benefits", period) - return where(scottish_working_age, universal_credit, child_benefit) + return where(scottish_working_age, scottish_child, child_benefit) diff --git a/policyengine_uk/variables/household/demographic/scottish_council_tax_reduction_child_placement.py b/policyengine_uk/variables/household/demographic/scottish_council_tax_reduction_child_placement.py new file mode 100644 index 0000000000..2cc346f62a --- /dev/null +++ b/policyengine_uk/variables/household/demographic/scottish_council_tax_reduction_child_placement.py @@ -0,0 +1,42 @@ +from policyengine_uk.model_api import * + + +class ScottishCouncilTaxReductionChildPlacement(Enum): + FOSTER_CARER = "Placed with a foster carer" + APPROVED_KINSHIP_CARER = "Placed with or living with an approved kinship carer" + PARENT_OR_PARENTAL_RESPONSIBILITY = ( + "Placed with or living with a parent or person with parental responsibility" + ) + OTHER_LOOKED_AFTER = "Other looked-after arrangement" + UNSPECIFIED = "Use existing looked-after status" + + +class scottish_council_tax_reduction_child_placement(Variable): + value_type = Enum + possible_values = ScottishCouncilTaxReductionChildPlacement + default_value = ScottishCouncilTaxReductionChildPlacement.UNSPECIFIED + entity = Person + label = "Scottish Council Tax Reduction child placement" + definition_period = YEAR + documentation = ( + "The placement of a child looked after by a local authority for " + "Scotland's working-age Council Tax Reduction child test from April " + "2022. This input refines only a person flagged is_looked_after_child; " + "it does not change that flag, Universal Credit or any other scheme. " + "For foster, approved kinship and other looked-after arrangements, " + "also set is_looked_after_by_local_authority to true. For a placement " + "with a parent or a person with parental responsibility, keep that " + "existing input false under its Universal Credit exception convention. " + "UNSPECIFIED retains the existing exclusion for a flagged child. " + "This compatibility fallback does not identify an unknown placement " + "as a foster placement or impute any placement. Before 31 October " + "2024 the Scottish rule excepts parent, parental responsibility and " + "approved kinship arrangements; from that date it excludes only " + "foster placements. The model's annual parameter conversion samples " + "30 April, so annual 2024 retains the earlier rule and annual 2025 " + "uses the amended rule." + ) + reference = ( + "https://www.legislation.gov.uk/ssi/2021/249/regulation/7/2022-04-01", + "https://www.legislation.gov.uk/ssi/2024/230/made", + )