-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Edit files based on Pavel's comments
- Loading branch information
1 parent
c1bb0e1
commit df9f458
Showing
9 changed files
with
61 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
.../gov/hmrc/tax_free_childcare/conditions/tax_free_childcare_incompatibilities_condition.py
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
...k/variables/gov/hmrc/tax_free_childcare/conditions/tax_free_childcare_program_eligible.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from policyengine_uk.model_api import * | ||
|
||
|
||
class tax_free_childcare_program_eligible(Variable): | ||
value_type = bool | ||
entity = Person | ||
label = "Tax-Free Childcare program eligibility" | ||
documentation = "Whether the person's benefit unit meets the incompatibility conditions for tax-free childcare (not receiving WTC, CTC, or UC)" | ||
definition_period = YEAR | ||
|
||
def formula(person, period, parameters): | ||
""" | ||
Calculate eligibility based on incompatible benefits. | ||
Returns: | ||
bool: True if eligible (no incompatible benefits received), False if receiving any incompatible benefits | ||
""" | ||
countable_programs = add(person.benunit, period, ["working_tax_credit", "child_tax_credit", "universal_credit"]) | ||
return countable_programs == 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters