Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Universal childcare entitlement #1010

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
adf96a0
Implement tax free childcare
vahid-ahmadi Jan 10, 2025
ee24d61
Parameterize values
vahid-ahmadi Jan 13, 2025
12d24be
Reformatting to pass the tests
vahid-ahmadi Jan 13, 2025
235fd08
Reformatting with black
vahid-ahmadi Jan 13, 2025
b3b1967
Reformatting with black
vahid-ahmadi Jan 13, 2025
55ce6c3
Format code with black
vahid-ahmadi Jan 13, 2025
9952ed9
Format code with black using 79-char line length
vahid-ahmadi Jan 13, 2025
d6b22e5
Fix YAML structure
vahid-ahmadi Jan 13, 2025
b06a47c
Fix age condition YAML file
vahid-ahmadi Jan 13, 2025
90eb823
Fix age condition YAML file
vahid-ahmadi Jan 13, 2025
0c871a5
Fix other YAML files
vahid-ahmadi Jan 13, 2025
b28b5f8
Edit parameterization
vahid-ahmadi Jan 13, 2025
ff1f456
Fix formatting
vahid-ahmadi Jan 13, 2025
d3ad685
Edit age in YAML files
vahid-ahmadi Jan 13, 2025
5c6d359
Replace if with where
vahid-ahmadi Jan 13, 2025
e0221f8
Format with black
vahid-ahmadi Jan 13, 2025
fc83a03
Edit for test passing
vahid-ahmadi Jan 13, 2025
4421154
Edit format with black
vahid-ahmadi Jan 13, 2025
b4e8d1a
Edit format of benefit py file
vahid-ahmadi Jan 13, 2025
cf7f6e6
Edit child as not being boolean
vahid-ahmadi Jan 13, 2025
d4ff3b2
Change if to where
vahid-ahmadi Jan 14, 2025
0058402
Change disability definition
vahid-ahmadi Jan 14, 2025
37c7228
Solve .values problem
vahid-ahmadi Jan 14, 2025
af96f3a
Edit .values error
vahid-ahmadi Jan 14, 2025
e96bc2e
Edit vectorization problem
vahid-ahmadi Jan 14, 2025
153c2f6
Change folder from hmrc to dwp
vahid-ahmadi Jan 14, 2025
c9fbd0c
Use is_disabled_for_benefits variable
vahid-ahmadi Jan 14, 2025
a2f73d2
Add .astype(bool) to fix error
vahid-ahmadi Jan 14, 2025
a061877
Fix bitwise AND operation error
vahid-ahmadi Jan 14, 2025
a9ca8a7
Add .astype(bool) to conditions
vahid-ahmadi Jan 14, 2025
c7c6762
Add unit tests
vahid-ahmadi Jan 14, 2025
59e1b78
Reformat with black
vahid-ahmadi Jan 14, 2025
cebaace
Fix the folders
vahid-ahmadi Jan 15, 2025
c1a5cf0
Fix the folders
vahid-ahmadi Jan 15, 2025
49ec556
Merge branch 'tax-free-childcare-new' of https://github.com/policyeng…
vahid-ahmadi Jan 15, 2025
4a5cad5
Implement free childcare program
vahid-ahmadi Jan 15, 2025
4432db2
Format with black
vahid-ahmadi Jan 15, 2025
c7c1998
Change tests
vahid-ahmadi Jan 15, 2025
789f676
Edit format based on Pavel's comments
vahid-ahmadi Jan 17, 2025
cd3ff72
Implement universal 15-hours free childcare
vahid-ahmadi Jan 17, 2025
e792de8
Edit folders
vahid-ahmadi Jan 24, 2025
aacf564
Edit codes and labels
vahid-ahmadi Jan 24, 2025
d736589
Format with black
vahid-ahmadi Jan 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed- to move to /gov/dfe

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: Age thresholds for free childcare eligibility
metadata:
unit: year
period: year
label: Age limit for free childcare eligibility
reference:
- title: Childcare Act
href: https://www.legislation.gov.uk/uksi/2017/1160/pdfs/uksiem_20171160_en.pdf
- title: Tax-Free Childcare Guidance
href: https://www.gov.uk/check-eligible-free-childcare-if-youre-working?step-by-step-nav=f517cd57-3c18-4bb9-aa8b-1b907e279bf9
values:
2015-01-01: 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: Age thresholds for free childcare eligibility
metadata:
unit: year
period: year
label: Age limit for free childcare eligibility
reference:
- title: Childcare Act
href: https://www.legislation.gov.uk/uksi/2017/1160/pdfs/uksiem_20171160_en.pdf
- title: Tax-Free Childcare Guidance
href: https://www.gov.uk/check-eligible-free-childcare-if-youre-working?step-by-step-nav=f517cd57-3c18-4bb9-aa8b-1b907e279bf9
values:
2015-01-01: 0.75
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: Age thresholds for free childcare eligibility
metadata:
unit: year
period: year
label: Age limit for free childcare eligibility
reference:
- title: Childcare Act
href: https://www.legislation.gov.uk/uksi/2017/1160/pdfs/uksiem_20171160_en.pdf
- title: Tax-Free Childcare Guidance
href: https://www.gov.uk/check-eligible-free-childcare-if-youre-working?step-by-step-nav=f517cd57-3c18-4bb9-aa8b-1b907e279bf9
values:
2015-01-01: 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: Age thresholds for free childcare eligibility
metadata:
unit: year
period: year
label: Age limit for free childcare eligibility
reference:
- title: Childcare Act
href: https://www.legislation.gov.uk/uksi/2017/1160/pdfs/uksiem_20171160_en.pdf
- title: Tax-Free Childcare Guidance
href: https://www.gov.uk/check-eligible-free-childcare-if-youre-working?step-by-step-nav=f517cd57-3c18-4bb9-aa8b-1b907e279bf9
values:
2015-01-01: 4
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
description: Income thresholds for tax-free childcare eligibility
metadata:
period: year
label: Income thresholds for tax-free childcare eligibility
reference:
- title: Childcare Payments Act
href: https://www.legislation.gov.uk/ukdsi/2015/9780111127063
- title: Tax-Free Childcare Guidance
href: https://www.gov.uk/tax-free-childcare?step-by-step-nav=d78aeaf6-1747-4d72-9619-f16efb4dd89d

brackets:
- threshold:
2015-01-01: 0
amount:
2015-01-01: 1_331
- threshold:
2015-01-01: 18
amount:
2015-01-01: 1_788
- threshold:
2015-01-01: 21
amount:
2015-01-01: 2_379
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: max income threshold
metadata:
unit: year
period: year
label: max income threshold
reference:
- title: Childcare Act
href: https://www.legislation.gov.uk/uksi/2017/1160/pdfs/uksiem_20171160_en.pdf
- title: Tax-Free Childcare Guidance
href: https://www.gov.uk/check-eligible-free-childcare-if-youre-working?step-by-step-nav=f517cd57-3c18-4bb9-aa8b-1b907e279bf9
values:
2015-01-01: 100_000
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: Age thresholds for tax-free childcare eligibility - disability-related limit
metadata:
unit: year
period: year
label: Disability age limit for tax-free childcare eligibility
reference:
- title: Childcare Act
href: https://www.legislation.gov.uk/ukdsi/2015/9780111127063
- title: Tax-Free Childcare Guidance
href: https://www.gov.uk/tax-free-childcare?step-by-step-nav=d78aeaf6-1747-4d72-9619-f16efb4dd89d
values:
2015-01-01: 17
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: Age thresholds for tax-free childcare eligibility - standard limit
metadata:
unit: year
period: year
label: Standard age limit for tax-free childcare eligibility
reference:
- title: Childcare Act
href: https://www.legislation.gov.uk/ukdsi/2015/9780111127063
- title: Tax-Free Childcare Guidance
href: https://www.gov.uk/tax-free-childcare?step-by-step-nav=d78aeaf6-1747-4d72-9619-f16efb4dd89d
values:
2015-01-01: 12
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: Maximum yearly contribution limit for disabled child tax-free childcare
metadata:
unit: currency-GBP
period: year
label: Disabled child yearly maximum contribution
reference:
- title: Childcare Payments Act
href: https://www.legislation.gov.uk/ukdsi/2015/9780111127063
- title: Tax-Free Childcare Guidance
href: https://www.gov.uk/tax-free-childcare?step-by-step-nav=d78aeaf6-1747-4d72-9619-f16efb4dd89d
values:
2015-01-01: 4000
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: Government contribution ratio for tax-free childcare
metadata:
unit: /1
period: year
label: Government contribution ratio for tax-free childcare
reference:
- title: Childcare Payments Act
href: https://www.legislation.gov.uk/ukdsi/2015/9780111127063
- title: Tax-Free Childcare Guidance
href: https://www.gov.uk/tax-free-childcare?step-by-step-nav=d78aeaf6-1747-4d72-9619-f16efb4dd89d
values:
2015-01-01: 0.25 # 2/8 expressed as decimal
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: Maximum yearly contribution limit for standard child tax-free childcare
metadata:
unit: currency-GBP
period: year
label: Standard child yearly maximum contribution
reference:
- title: Childcare Payments Act
href: https://www.legislation.gov.uk/ukdsi/2015/9780111127063
- title: Tax-Free Childcare Guidance
href: https://www.gov.uk/tax-free-childcare?step-by-step-nav=d78aeaf6-1747-4d72-9619-f16efb4dd89d
values:
2015-01-01: 2000
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
description: Income thresholds for tax-free childcare eligibility
metadata:
period: year
label: Income thresholds for tax-free childcare eligibility
reference:
- title: Childcare Payments Act
href: https://www.legislation.gov.uk/ukdsi/2015/9780111127063
- title: Tax-Free Childcare Guidance
href: https://www.gov.uk/tax-free-childcare?step-by-step-nav=d78aeaf6-1747-4d72-9619-f16efb4dd89d

brackets:
- threshold:
2015-01-01: 0
amount:
2015-01-01: 1_331
- threshold:
2015-01-01: 18
amount:
2015-01-01: 1_788
- threshold:
2015-01-01: 21
amount:
2015-01-01: 2_379
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: max income threshold for tax free childcare
metadata:
unit: year
period: year
label: max income threshold
reference:
- title: Childcare Act
href: https://www.legislation.gov.uk/ukdsi/2015/9780111127063
- title: Tax-Free Childcare Guidance
href: https://www.gov.uk/tax-free-childcare?step-by-step-nav=d78aeaf6-1747-4d72-9619-f16efb4dd89d
values:
2015-01-01: 100_000
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: Maximum age for universal free childcare eligibility (3 and 4 year olds)
metadata:
unit: year
period: year
label: Maximum age for universal free childcare
reference:
- title: Childcare and early education
href: https://www.gov.uk/help-with-childcare-costs/free-childcare-and-education-for-3-to-4-year-olds?step-by-step-nav=f237ec8e-e82c-4ffa-8fba-2a88a739783b
- title: Parliamentary Research Briefing - Childcare
href: https://researchbriefings.files.parliament.uk/documents/CBP-8054/CBP-8054.pdf.#:~:text=All%20three%20and%20four%2Dyear%2Dolds%20in%20England%20are%20eligible,and%20applies%20irrespective%20of%20income.
values:
2015-01-01: 5
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: Minimum age for universal free childcare eligibility (3 and 4 year olds)
metadata:
unit: year
period: year
label: Minimum age for universal free childcare
reference:
- title: Childcare and early education
href: https://www.gov.uk/help-with-childcare-costs/free-childcare-and-education-for-3-to-4-year-olds?step-by-step-nav=f237ec8e-e82c-4ffa-8fba-2a88a739783b
- title: Parliamentary Research Briefing - Childcare
href: https://researchbriefings.files.parliament.uk/documents/CBP-8054/CBP-8054.pdf.#:~:text=All%20three%20and%20four%2Dyear%2Dolds%20in%20England%20are%20eligible,and%20applies%20irrespective%20of%20income.
values:
2015-01-01: 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: Number of universal free childcare hours provided per year for 3-4 year olds
metadata:
unit: hour
period: year
label: Annual universal free childcare hours
reference:
- title: Childcare and early education
href: https://www.gov.uk/help-with-childcare-costs/free-childcare-and-education-for-3-to-4-year-olds?step-by-step-nav=f237ec8e-e82c-4ffa-8fba-2a88a739783b
- title: Parliamentary Research Briefing - Childcare
href: https://researchbriefings.files.parliament.uk/documents/CBP-8054/CBP-8054.pdf.#:~:text=All%20three%20and%20four%2Dyear%2Dolds%20in%20England%20are%20eligible,and%20applies%20irrespective%20of%20income.
values:
2015-01-01: 570
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
- name: Child too young - ineligible
period: 2025
input:
age: 0.5 # 6 months
output:
free_childcare_15_hours: false

- name: Child exactly at minimum age - eligible
period: 2025
input:
age: 0.75 # 9 months
output:
free_childcare_15_hours: true

- name: Child in middle of eligible range - eligible
period: 2025
input:
age: 1.5 # 18 months
output:
free_childcare_15_hours: true

- name: Child at maximum age - eligible
period: 2025
input:
age: 2.0 # 24 months
output:
free_childcare_15_hours: true

- name: eligible
period: 2025
input:
age: 2.1 # 25 months
output:
free_childcare_15_hours: true

- name: eligible
period: 2025
input:
age: 3.1 # 25 months
output:
free_childcare_15_hours: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
- name: Child too young - ineligible
period: 2025
input:
age: 2.99 # Just under 3 years
output:
free_childcare_30_hours: false

- name: Child exactly at minimum age - eligible
period: 2025
input:
age: 3.0 # Exactly 3 years
output:
free_childcare_30_hours: true

- name: Child in early eligible range - eligible
period: 2025
input:
age: 3.2 # 3 years and ~2.5 months
output:
free_childcare_30_hours: true

- name: Child in middle of eligible range - eligible
period: 2025
input:
age: 3.5 # 3.5 years
output:
free_childcare_30_hours: true

- name: Child in late eligible range - eligible
period: 2025
input:
age: 3.8 # 3 years and ~10 months
output:
free_childcare_30_hours: true

- name: Child at maximum age - eligible
period: 2025
input:
age: 4.0 # Exactly 4 years
output:
free_childcare_30_hours: true

- name: Child too old - ineligible
period: 2025
input:
age: 4.1 # Just over 4 years
output:
free_childcare_30_hours: false
Loading
Loading