Skip to content

Commit 03b6ece

Browse files
committed
Add would claim variable
1 parent ced9dd4 commit 03b6ece

10 files changed

Lines changed: 59 additions & 0 deletions

File tree

policyengine_uk/variables/gov/dfe/care_to_learn/care_to_learn_eligible.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class care_to_learn_eligible(Variable):
66
entity = Person
77
label = "eligible for Care to Learn childcare support"
88
definition_period = YEAR
9+
defined_for = "would_claim_care_to_learn"
910

1011
def formula(person, period, parameters):
1112
# Link for instruction: https://www.gov.uk/care-to-learn/eligibility
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from policyengine_uk.model_api import *
2+
3+
4+
class would_claim_care_to_learn(Variable):
5+
value_type = bool
6+
entity = BenUnit
7+
label = "would claim Care to Learn"
8+
documentation = (
9+
"Whether this BenUnit would claim Care to Learn if eligible"
10+
)
11+
definition_period = YEAR
12+
default_value = True

policyengine_uk/variables/gov/dfe/extended_childcare_entitlement/extended_childcare_entitlement_eligible.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class extended_childcare_entitlement_eligible(Variable):
66
entity = BenUnit
77
label = "eligibility for extended childcare entitlement"
88
definition_period = YEAR
9+
defined_for = "would_claim_extended_childcare"
910

1011
def formula(benunit, period, parameters):
1112
# Check if household is in England
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from policyengine_uk.model_api import *
2+
3+
4+
class would_claim_extended_childcare(Variable):
5+
value_type = bool
6+
entity = BenUnit
7+
label = "would claim extended childcare entitlement"
8+
documentation = "Whether this family would claim extended childcare entitlement if eligible"
9+
definition_period = YEAR
10+
default_value = True

policyengine_uk/variables/gov/dfe/targeted_childcare_entitlement/targeted_childcare_entitlement_eligible.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class targeted_childcare_entitlement_eligible(Variable):
66
entity = BenUnit
77
label = "eligibility for targeted childcare entitlement"
88
definition_period = YEAR
9+
defined_for = "would_claim_targeted_childcare"
910

1011
def formula(benunit, period, parameters):
1112

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from policyengine_uk.model_api import *
2+
3+
4+
class would_claim_targeted_childcare(Variable):
5+
value_type = bool
6+
entity = BenUnit
7+
label = "would claim targeted childcare entitlement"
8+
documentation = "Whether this family would claim targeted childcare entitlement if eligible"
9+
definition_period = YEAR
10+
default_value = True

policyengine_uk/variables/gov/dfe/universal_childcare_entitlement/universal_childcare_entitlement_eligible.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class universal_childcare_entitlement_eligible(Variable):
66
entity = Person
77
label = "eligible for universal childcare entitlement"
88
definition_period = YEAR
9+
defined_for = "would_claim_universal_childcare"
910

1011
def formula(person, period, parameters):
1112
country = person.household("country", period)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from policyengine_uk.model_api import *
2+
3+
4+
class would_claim_universal_childcare(Variable):
5+
value_type = bool
6+
entity = BenUnit
7+
label = "would claim universal childcare entitlement"
8+
documentation = "Whether this BenUnit would claim universal childcare entitlement if eligible"
9+
definition_period = YEAR
10+
default_value = True

policyengine_uk/variables/gov/hmrc/tax_free_childcare/tax_free_childcare_eligibility.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class tax_free_childcare_eligible(Variable):
66
entity = BenUnit
77
label = "overall eligibility for tax-free childcare"
88
definition_period = YEAR
9+
defined_for = "would_claim_tfc"
910

1011
def formula(benunit, period, parameters):
1112
meets_age_condition = benunit.any(
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from policyengine_uk.model_api import *
2+
3+
4+
class would_claim_tfc(Variable):
5+
value_type = bool
6+
entity = BenUnit
7+
label = "would claim Tax-Free Childcare"
8+
documentation = (
9+
"Whether this family would claim Tax-Free Childcare if eligible"
10+
)
11+
definition_period = YEAR
12+
default_value = True

0 commit comments

Comments
 (0)