Skip to content

Commit 63d0353

Browse files
authored
Add UC carer element to extended childcare exemptions (#1604)
1 parent 9886996 commit 63d0353

5 files changed

Lines changed: 53 additions & 10 deletions

File tree

changelog.d/1032.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Added Universal Credit carer element to extended childcare entitlement work-requirement exemptions.

policyengine_uk/parameters/gov/dfe/extended_childcare_entitlement/disability_criteria.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
description: The Department for Education exempts participants in these programs from work requirements of extended childcare entitlement.
1+
description: The Department for Education exempts participants in these programs from work requirements of extended childcare entitlement.
22
metadata:
33
reference:
44
- title: The Childcare Regulations 2022 - Regulation 11A
@@ -9,6 +9,7 @@ metadata:
99
values:
1010
2015-09-01:
1111
- carers_allowance # 11A(1)(a): Carer's allowance under Section 70 of Social Security Contributions and Benefits Act 1992
12+
- uc_carer_element # 11A(1)(c): Universal Credit carer element under Regulation 29 of the Universal Credit Regulations 2013
1213
- esa_contrib # 11A(1)(e): Employment and support allowance under Welfare Reform Act 2007
1314
- incapacity_benefit # 11A(1)(g): Long-term or short-term incapacity benefit under Social Security Contributions and Benefits Act
1415
- sda # 11A(1)(h): Severe disablement allowance under Section 68 of Social Security Contributions and Benefits Act

policyengine_uk/tests/policy/baseline/gov/dfe/extended_childcare_entitlement/extended_childcare_entitlement_work_condition.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,29 @@
6161
output:
6262
extended_childcare_entitlement_work_condition: [1, 1, 0]
6363

64+
- name: Couple with children, one working one with Carer's Allowance - eligible
65+
period: 2025
66+
input:
67+
people:
68+
parent1:
69+
age: 40
70+
in_work: true
71+
is_parent: true
72+
parent2:
73+
age: 38
74+
in_work: false
75+
is_parent: true
76+
carers_allowance: 1
77+
child:
78+
age: 4
79+
is_parent: false
80+
benunits:
81+
benunit:
82+
members: [parent1, parent2, child]
83+
family_type: COUPLE_WITH_CHILDREN
84+
output:
85+
extended_childcare_entitlement_work_condition: [1, 1, 0]
86+
6487
- name: Couple with children one working one not - ineligible
6588
period: 2025
6689
input:
@@ -100,4 +123,4 @@
100123
members: [person1, person2]
101124
family_type: COUPLE_NO_CHILDREN
102125
output:
103-
extended_childcare_entitlement_work_condition: [0, 0]
126+
extended_childcare_entitlement_work_condition: [0, 0]

policyengine_uk/variables/gov/dfe/extended_childcare_entitlement/conditions/extended_childcare_entitlement_work_condition.py

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,31 @@ def formula(person, period, parameters):
1313
benunit = person.benunit
1414
in_work = person("in_work", period)
1515

16-
# Get disability status
1716
p = parameters(period).gov.dfe.extended_childcare_entitlement
18-
eligible_based_on_disability = add(person, period, p.disability_criteria) > 0
19-
20-
# Adjust eligibility based on the summed UC Carer Element: 11A(1)(c)
21-
eligible_based_on_disability_or_carer = eligible_based_on_disability | (
22-
benunit("uc_carer_element", period) > 0
17+
disability_criteria = list(p.disability_criteria)
18+
person_disability_criteria = [
19+
variable
20+
for variable in disability_criteria
21+
if person.entity.get_variable(variable).entity.is_person
22+
]
23+
group_disability_criteria = [
24+
variable
25+
for variable in disability_criteria
26+
if not person.entity.get_variable(variable).entity.is_person
27+
]
28+
29+
eligible_based_on_person_disability = (
30+
add(person, period, person_disability_criteria) > 0
31+
if person_disability_criteria
32+
else False
33+
)
34+
eligible_based_on_group_disability = (
35+
add(benunit, period, group_disability_criteria) > 0
36+
if group_disability_criteria
37+
else False
38+
)
39+
eligible_based_on_disability = (
40+
eligible_based_on_person_disability | eligible_based_on_group_disability
2341
)
2442

2543
# Count parents in benefit unit
@@ -32,7 +50,7 @@ def formula(person, period, parameters):
3250
all_parents_working = benunit.all(in_work | ~person("is_parent", period))
3351
some_parents_working = benunit.any(in_work & person("is_parent", period))
3452
any_parent_disability_eligible = benunit.any(
35-
eligible_based_on_disability_or_carer & person("is_parent", period)
53+
eligible_based_on_disability & person("is_parent", period)
3654
)
3755

3856
# Work condition for couples - either both working or one working with other disabled or receiving UC Carer Element

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)