-
Notifications
You must be signed in to change notification settings - Fork 28
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
base: master
Are you sure you want to change the base?
Conversation
...engine_uk/parameters/gov/dwp/childcare_subsidies/free_childcare/age/lower_limit_3_years.yaml
Outdated
Show resolved
Hide resolved
Looks good to me on the entitlement part- though we still need to estimate the value of this subsidy, but we can separate that into a different PR. Bit of a mystery why the tests are failing here on tests that aren't affected by this. |
policyengine_uk/parameters/gov/dwp/universal_childcare_entitlement/age/max_age.yaml
Outdated
Show resolved
Hide resolved
|
policyengine_uk/parameters/gov/dwp/universal_childcare_entitlement/fund_rate.yaml
Outdated
Show resolved
Hide resolved
policyengine_uk/parameters/gov/dwp/universal_childcare_entitlement/hours_based_on_age.yaml
Outdated
Show resolved
Hide resolved
policyengine_uk/parameters/gov/dwp/universal_childcare_entitlement/hours_based_on_age.yaml
Outdated
Show resolved
Hide resolved
policyengine_uk/parameters/gov/dwp/universal_childcare_entitlement/hours_based_on_age.yaml
Outdated
Show resolved
Hide resolved
.../tests/policy/baseline/gov/dwp/universal_childcare_entitlement/universal_free_childcare.yaml
Outdated
Show resolved
Hide resolved
policyengine_uk/parameters/gov/dwp/universal_childcare_entitlement/hourly_fund_rate.yaml
Outdated
Show resolved
Hide resolved
policyengine_uk/parameters/gov/dwp/universal_childcare_entitlement/hourly_fund_rate.yaml
Outdated
Show resolved
Hide resolved
...gine_uk/variables/gov/dwp/universal_childcare_entitlement/universal_childcare_entitlement.py
Outdated
Show resolved
Hide resolved
...gine_uk/variables/gov/dwp/universal_childcare_entitlement/universal_childcare_entitlement.py
Outdated
Show resolved
Hide resolved
...gine_uk/variables/gov/dwp/universal_childcare_entitlement/universal_childcare_entitlement.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the above changes, all else looks good to me!
policyengine_uk/parameters/gov/dwp/universal_childcare_entitlement/funding_rate.yaml
Outdated
Show resolved
Hide resolved
policyengine_uk/parameters/gov/dwp/universal_childcare_entitlement/funding_rate.yaml
Outdated
Show resolved
Hide resolved
policyengine_uk/parameters/gov/dwp/universal_childcare_entitlement/hours.yaml
Outdated
Show resolved
Hide resolved
policyengine_uk/parameters/gov/dwp/universal_childcare_entitlement/hours.yaml
Show resolved
Hide resolved
.../tests/policy/baseline/gov/dwp/universal_childcare_entitlement/universal_free_childcare.yaml
Outdated
Show resolved
Hide resolved
.../tests/policy/baseline/gov/dwp/universal_childcare_entitlement/universal_free_childcare.yaml
Show resolved
Hide resolved
...gine_uk/variables/gov/dwp/universal_childcare_entitlement/universal_childcare_entitlement.py
Outdated
Show resolved
Hide resolved
unit = "hour" | ||
|
||
def formula(person, period, parameters): | ||
# Get parameters with the correct path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Get parameters with the correct path |
|
||
# Get the funding rate from parameters | ||
p = parameters(period).gov.dwp.universal_childcare_entitlement | ||
rate = p.funding_rate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use p.
directly to indicate it's a parameter
rate = p.funding_rate | |
return hours * p.funding_rate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since these are person-level variables that don't depend on attributes of other household members, please simplify the unit tests to operate at the person level. some of these could still provide value as integration tests though
- title: House of Commons Library | ||
href: https://commonslibrary.parliament.uk/research-briefings/cbp-8052/ | ||
values: | ||
2015-01-01: 5.88 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about other ages?
The national average hourly funding rates for local authorities in 2024/25 are:
Three and four-year-olds: £5.88 per hour. The rate has fallen by 3% in real terms (when adjusted for inflation) since 2017/18 (in 2024/25 prices).
Two-year-olds: £8.28 per hour. The rate has increased by 21% in real terms since 2017/18 and by 35% since 2023/24.
Children under two: £11.22 per hour.
from policyengine_uk.model_api import * | ||
|
||
|
||
class universal_childcare_entitlement(Variable): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we limit to england?
amount_unit: hour | ||
label: universal childcare entitlement hours | ||
reference: | ||
- title: Childcare (Early Years Provision Free of Charge) (Extended Entitlement) Regulations 2016 - Regulation 35(3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you point more specifically? 570 is is in 35(1), i see the third birthday in (3) but not (quickly scanning) the compulsory school age part
Overview
This PR implements the 15-hour universal free childcare scheme calculation in PolicyEngine UK. The scheme provides government contributions towards childcare costs for eligible families. (Documentation link)
Key Features
Fixes #1009
Based on Fixes #1006