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.
Co-authored-by: Kingsley Yang <[email protected]>
- Loading branch information
1 parent
d2915bc
commit dcb6081
Showing
4 changed files
with
54 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- bump: minor | ||
changes: | ||
added: | ||
- Manitoba spouse and common-law partner amount. |
10 changes: 10 additions & 0 deletions
10
...meters/gov/provinces/mb/tax/income/credits/spouse_and_common_law_partner_amount/base.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,10 @@ | ||
description: Manitoba provides this spouse and common-law partner amount, which is equivalent to the spouses basic personal amount. | ||
values: | ||
2023-01-01: 9_134 | ||
metadata: | ||
unit: currency-CAD | ||
period: year | ||
label: Manitoba spouse and commonlaw partner amount credit. | ||
reference: | ||
- title: Government of Canada - Manitoba spouse and commonlaw partner amount credit | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1mb/td1mb-23e.pdf |
23 changes: 23 additions & 0 deletions
23
..._spouse_and_common_law_partner_amount/mb_spouse_and_common_law_partner_amount_credit.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,23 @@ | ||
- name: No spouse income | ||
period: 2023 | ||
input: | ||
province_code: MB | ||
spouse_income: 0 | ||
output: | ||
mb_spouse_and_common_law_partner_amount_credit: 9_134 | ||
|
||
- name: Spouse income of $5,000 | ||
period: 2023 | ||
input: | ||
province_code: MB | ||
spouse_income: 5_000 | ||
output: | ||
mb_spouse_and_common_law_partner_amount_credit: 4_134 | ||
|
||
- name: Capped at 0 | ||
period: 2023 | ||
input: | ||
province_code: MB | ||
spouse_income: 40_000 | ||
output: | ||
mb_spouse_and_common_law_partner_amount_credit: 0 |
17 changes: 17 additions & 0 deletions
17
...ts/spouse_and_common_law_partner_amount/mb_spouse_and_common_law_partner_amount_credit.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,17 @@ | ||
from policyengine_canada.model_api import * | ||
|
||
|
||
class mb_spouse_and_common_law_partner_amount_credit(Variable): | ||
value_type = float | ||
entity = Person | ||
label = "Manitoba spouse and commonlaw partner amount credit" | ||
definition_period = YEAR | ||
defined_for = ProvinceCode.MB | ||
|
||
def formula(person, period, parameters): | ||
|
||
spouse_income = person("spouse_income", period) | ||
p = parameters( | ||
period | ||
).gov.provinces.mb.tax.income.credits.spouse_and_common_law_partner_amount | ||
return max_(0, (p.base - spouse_income)) |