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
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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
period: year
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
- title: Sasktachewan The Income Tax Act, 2000, Dividend credit, c25, s.13; 2020, c3-29*, s.3; 2022, c46, s.3.
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
href: https://pubsaskdev.blob.core.windows.net/pubsask-prod/806/I2-01.pdf#page=31
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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
period: year
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
- title: Sasktachewan The Income Tax Act, 2000, Dividend credit, c25, s.13; 2020, c3-29*, s.3; 2022, c46, s.3.
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
href: https://pubsaskdev.blob.core.windows.net/pubsask-prod/806/I2-01.pdf#page=31
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
- name: 2022 Saskatchewan Dividend Tax Credit Test 1
period: 2022
input:
province_code: SK
taxable_dividend_income: 15_000
other_than_eligible_taxable_dividend_income: 1_000
output:
sk_dividend_tax_credit: 347.3

- name: 2022 Saskatchewan Dividend Tax Credit Test 2
period: 2022
input:
province_code: SK
taxable_dividend_income: 20_000
other_than_eligible_taxable_dividend_income: 2_000
output:
sk_dividend_tax_credit: 525.1

- name: 2022 Saskatchewan Dividend Tax Credit Test 3
period: 2022
input:
province_code: SK
taxable_dividend_income: 28_000
other_than_eligible_taxable_dividend_income: 2_800
output:
sk_dividend_tax_credit: 735.14

- name: 2022 Saskatchewan Dividend Tax Credit Test 4
period: 2022
input:
province_code: SK
taxable_dividend_income: 30_000
other_than_eligible_taxable_dividend_income: 3_800
output:
sk_dividend_tax_credit: 862.09
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
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("taxable_dividend_income", period)
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
other_than_eligible_taxable_dividends = person(
"other_than_eligible_taxable_dividend_income", 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

reduced_taxable_dividends = max_(
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
taxable_dividends - other_than_eligible_taxable_dividends, 0
)
credits_on_eligible_taxable_dividends = (
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
reduced_taxable_dividends
* eligible_taxable_dividends_weight_percent
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
)

credits_on_other_than_eligible_taxable_dividends = (
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
)

return (
credits_on_eligible_taxable_dividends
+ credits_on_other_than_eligible_taxable_dividends
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from policyengine_canada.model_api import *


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


class taxable_dividend_income(Variable):
Yaohhhh marked this conversation as resolved.
Show resolved Hide resolved
value_type = float
entity = Person
label = "Total taxable dividends (eligible and other than eligible)"
unit = CAD
definition_period = YEAR
reference = "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
Loading