Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manitoba Spouse or Common-law Partner Amount #432

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
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.
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
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
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
metadata:
unit: currency-CAD
period: year
label: Manitoba spouse and commonlaw partner amount credit.
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
reference:
- title: Government of Canada - Manitoba spouse and commonlaw partner amount credit
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1mb/td1mb-23e.pdf#page=1
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
- name: Eligible income spouse lived with household's head
period: 2023
input:
province_code: MB
spouse_income: 5_000
lived_together: true
mb_head_eligibility: true
output:
mb_spouse_credit_amount: 4_134

- name: Eligible income spouse does not lived with household's head
period: 2023
input:
province_code: MB
spouse_income: 5_000
lived_together: false
mb_head_eligibility: true
output:
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
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):
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
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)
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from policyengine_canada.model_api import *


class mb_spouse_credit_amount(Variable):
value_type = float
entity = Person
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
label = "Manitoba spouse and commonlaw partner net income"
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
definition_period = YEAR
defined_for = "mb_head_eligibility"

def formula(person, period, parameters):
laviniawo marked this conversation as resolved.
Show resolved Hide resolved

p = parameters(
period
).gov.provinces.mb.tax.income.credits.spouse_or_common_law_partner_amount

spouse_income = person("spouse_income", period)
living_together = person("lived_together", period)

return living_together * (max_(0, (p.base_amount - spouse_income)))
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from policyengine_canada.model_api import *


class is_caregiver(Variable):
value_type = bool
entity = Person
label = "Is the caregiver"
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
definition_period = YEAR
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from policyengine_canada.model_api import *


class lived_together(Variable):
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
value_type = bool
entity = Person
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
label = "Lived together with the tax filer"
laviniawo marked this conversation as resolved.
Show resolved Hide resolved
definition_period = YEAR