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

Saskatchewan Dividend Tax Credit #457

Open
wants to merge 14 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:
- Saskatchewan Dividend Tax Credit.
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Saskatchewan applies this weight percentage on the eligible taxable amount of dividends in calculating the total dividend tax credit.
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
values:
2022-01-01: 0.01695
metadata:
unit: /1
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
label: Saskatchewan eligible taxable amount of dividends' weight percentage
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
reference:
- title: 5008-D Worksheet SK428 - Saskatchewan 2022
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5008-d/5008-d-22e.pdf #page=3
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Saskatchewan applies this weight percentage on the other than eligible taxable amount of dividends in calculating the total dividend tax credit.
values:
2022-01-01: 0.11
metadata:
unit: /1
label: Saskatchewan other than eligible taxable amount of dividends' weight percentage
reference:
- title: 5008-D Worksheet SK428 - Saskatchewan 2022
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5008-d/5008-d-22e.pdf #page=3
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- name: 2022 Saskatchewan Dividend Tax Credit
period: 2022
input:
province_code: SK
sk_total_taxable_dividends: 15_000
sk_other_than_eligible_taxable_dividends: 1_000
output:
sk_dividend_tax_credit: 347.3
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
from policyengine_canada.model_api import *


class sk_dividend_tax_credit(Variable):
value_type = float
entity = Person
label = "Saskatchewan Dividend Tax Credit"
unit = CAD
definition_period = YEAR
reference = "https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5008-d/5008-d-22e.pdf#page=3"
defined_for = ProvinceCode.SK

def formula(person, period, parameters):
p = parameters(
period
).gov.provinces.sk.tax.income.credits.dividend_tax_credit

taxable_dividends = person("sk_total_taxable_dividends", period)
other_than_eligible_taxable_dividends = person(
"sk_other_than_eligible_taxable_dividends", period
)

eligible_taxable_dividends_weight_percent = p.eligible_cal_percent
other_than_eligible_taxable_dividends_weight_percent = (
p.other_than_eligible_cal_percent
)
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved

return (
(taxable_dividends - other_than_eligible_taxable_dividends)
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
* eligible_taxable_dividends_weight_percent
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
) + (
other_than_eligible_taxable_dividends
* other_than_eligible_taxable_dividends_weight_percent
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from policyengine_canada.model_api import *


class sk_other_than_eligible_taxable_dividends(Variable):
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
value_type = float
entity = Person
label = "Saskatchewan Taxable Dividends (Other Than Eligible)"
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
unit = CAD
definition_period = YEAR
reference = "https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5008-d/5008-d-22e.pdf#page=3"
defined_for = ProvinceCode.SK
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from policyengine_canada.model_api import *


class sk_total_taxable_dividends(Variable):
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
value_type = float
entity = Person
label = "Saskatchewan Taxable Dividends (eligible and other than eligible)"
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
unit = CAD
definition_period = YEAR
reference = "https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5008-d/5008-d-22e.pdf#page=3"
defined_for = ProvinceCode.SK
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
defined_for = ProvinceCode.SK