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

SK senior supplementary amount #361

Merged
merged 21 commits into from
Aug 18, 2023
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
added:
- Saskatchewan Senior Supplementary amount Tax Credit.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
description: Saskatchewan provides the senior supplementary tax credit for filers at or above this age threshold.
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
values:
2022-01-01: 65
metadata:
unit: year
label: Saskatchewan senior supplementary tax credit eligible age-threshold
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
reference:
- title: 2023 Saskatchewan TD1SK Personal Tax Credits Return, line 3
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-23e.pdf#page1
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
- title: 2023 Saskatchewan TD1SK-WS Personal Tax Credits Return
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-23e.pdf
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
- title: Saskatchewan I2-01 The Income Tax Act, 2000
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
href: https://pubsaskdev.blob.core.windows.net/pubsask-prod/806/I2-01.pdf
- title: 2022 Saskatchewan TD1SK Personal Tax Credits Return, line 3
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-22e.pdf#page1

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
description: Saskatchewan provides this amount under the senior supplement credit.
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
values:
2022-01-01: 1_336
2023-01-01: 1_421
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
metadata:
unit: currency-CAD
label: Saskatchewan Senior Supplementary tax credit amount
reference:
- title: 2023 Saskatchewan TD1SK Personal Tax Credits Return, line 3
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-23e.pdf#page1
- title: 2023 Saskatchewan TD1SK-WS Personal Tax Credits Return
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-23e.pdf
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
- title: Saskatchewan I2-01 The Income Tax Act, 2000
href: https://pubsaskdev.blob.core.windows.net/pubsask-prod/806/I2-01.pdf
- title: 2022 Saskatchewan TD1SK Personal Tax Credits Return, line 3
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-22e.pdf#page1
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
- name: 2023 SK senior supplementary tax credit - Under age threshold
period: 2024
input:
province_code: SK
age: 64
is_head: true
output:
sk_senior_supplementary_credit: 0

- name: 2023 SK senior supplementary tax credit - At age threshold
period: 2023
input:
province_code: SK
age: 65
is_head: true
output:
sk_senior_supplementary_credit: 1_421

- name: 2023 SK senior supplementary tax credit - Above age threshold
period: 2024
input:
province_code: SK
age: 68
is_head: true
output:
sk_senior_supplementary_credit: 1_421

- name: 2022 SK senior supplementary tax credit - Above age threshold
period: 2022
input:
province_code: SK
age: 68
is_head: true
output:
sk_senior_supplementary_credit: 1_336

- name: 2023 SK senior supplementary tax credit - Not the household host
period: 2024
input:
province_code: SK
age: 65
is_head: false
output:
sk_senior_supplementary_credit: 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from policyengine_canada.model_api import *


class sk_senior_supplementary_credit(Variable):
value_type = float
unit = CAD
entity = Person
label = "Sasktachewan senior supplementary tax credit"
definition_period = YEAR
defined_for = ProvinceCode.SK
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved

def formula(person, period, parameters):
p = parameters(
period
).gov.provinces.sk.tax.income.credits.sk_senior_supplementary
age = person("age", period)
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
is_head = person("is_head", period)
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
eligibility = where((age >= p.age_threshold) & is_head, 1, 0)
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
return eligibility * p.amount