Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Co-authored-by: Kingsley Yang <[email protected]>
  • Loading branch information
ireneluo95 and Shinuing committed Jun 15, 2023
1 parent d2915bc commit dcb6081
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changelog_entry.yaml
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.
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
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
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))

0 comments on commit dcb6081

Please sign in to comment.