forked from PolicyEngine/policyengine-canada
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manitoba Spouse or Common-law Partner Amount
Fixes PolicyEngine#340
- Loading branch information
Showing
8 changed files
with
50 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
- bump: minor | ||
changes: | ||
added: | ||
- Manitoba spouse and common-law partner amount. | ||
added: | ||
- Manitoba spouse and common-law partner amount. |
15 changes: 15 additions & 0 deletions
15
...rovinces/mb/tax/income/credits/spouse_and_common_law_partner_amount/mb_head_eligible.yaml
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,15 @@ | ||
- name: Household's head is taking care of the spouse | ||
period: 2023 | ||
input: | ||
province_code: MB | ||
is_caregiver: true | ||
output: | ||
mb_head_eligibility: true | ||
|
||
- name: Household's head is not taking care of the spouse | ||
period: 2023 | ||
input: | ||
province_code: MB | ||
is_caregiver: false | ||
output: | ||
mb_head_eligibility: false |
26 changes: 18 additions & 8 deletions
26
...s/mb/tax/income/credits/spouse_and_common_law_partner_amount/mb_spouse_credit_amount.yaml
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 |
---|---|---|
@@ -1,19 +1,29 @@ | ||
- name: Eligible spouse with household's head not taking care of her | ||
- name: Eligible income spouse lived with household's head | ||
period: 2023 | ||
input: | ||
province_code: MB | ||
spouse_income: 5_000 | ||
is_caregiver: false | ||
mb_spouse_eligibility: true | ||
lived_together: true | ||
mb_head_eligibility: true | ||
output: | ||
mb_spouse_credit_amount: 0 | ||
mb_spouse_credit_amount: 4_134 | ||
|
||
- name: Eligible spouse with household's head taking care of her | ||
- name: Eligible income spouse does not lived with household's head | ||
period: 2023 | ||
input: | ||
province_code: MB | ||
spouse_income: 5_000 | ||
is_caregiver: true | ||
mb_spouse_eligibility: true | ||
lived_together: false | ||
mb_head_eligibility: true | ||
output: | ||
mb_spouse_credit_amount: 4_134 | ||
mb_spouse_credit_amount: 0 | ||
|
||
- name: ineligible income spouse lived with household's head | ||
period: 2023 | ||
input: | ||
province_code: MB | ||
spouse_income: 10_000 | ||
lived_together: true | ||
mb_head_eligibility: true | ||
output: | ||
mb_spouse_credit_amount: 0 |
29 changes: 0 additions & 29 deletions
29
...vinces/mb/tax/income/credits/spouse_and_common_law_partner_amount/mb_spouse_eligible.yaml
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...ovinces/mb/tax/income/credits/spouse_and_common_law_partner_amount/mb_head_eligibility.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,12 @@ | ||
from policyengine_canada.model_api import * | ||
|
||
|
||
class mb_head_eligibility(Variable): | ||
value_type = bool | ||
entity = Person | ||
label = "Manitoba head eligiblility for recieving spouse's tax credit" | ||
definition_period = YEAR | ||
defined_for = ProvinceCode.MB | ||
|
||
def formula(person, period, parameters): | ||
return person("is_caregiver", period) |
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
24 changes: 0 additions & 24 deletions
24
...s/mb/tax/income/credits/spouse_and_common_law_partner_amount/spouse_income_eligibility.py
This file was deleted.
Oops, something went wrong.
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