-
Notifications
You must be signed in to change notification settings - Fork 33
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 Caregiver Amount #406
Open
PavelMakarchuk
wants to merge
26
commits into
PolicyEngine:master
Choose a base branch
from
Yaohhhh:Yaohhhh/issue384
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
a347815
Create parameters
Yaohhhh c210e61
Add Variables
Yaohhhh b0d214f
Make changes to the variables
Yaohhhh 0228cb5
Complete Variable part
Yaohhhh 9a37f48
Finish Variables and tests part.
Yaohhhh 5d885d3
Fix errors
Yaohhhh adee6c2
Pass Final Tests
Yaohhhh 12a838f
Pass all tests and make format.
Yaohhhh 56298e3
Add changelog
Yaohhhh 2b69c4b
Add changelog
Yaohhhh 3294b03
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
Yaohhhh b39aefc
Improve
Yaohhhh cf75329
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
Yaohhhh 4204060
Improve and complete
Yaohhhh 0b0fb10
Fix page number
Yaohhhh 8121eae
Improve parameters
Yaohhhh 8ce3605
Merge branch
Yaohhhh 3d0b4bc
Add variables and improve codes
Yaohhhh feb55c3
Improve variables and tests
Yaohhhh 7b49855
Improve parameters, variables, and tests
Yaohhhh 81612d8
check version
Yaohhhh 1143ab1
Improve changelog
Yaohhhh eacd435
Improve
Yaohhhh 91cf579
Finish
Yaohhhh b0e3f87
Fix errors
Yaohhhh ff05861
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
Yaohhhh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- bump: minor | ||
changes: | ||
added: | ||
- Saskatchewan caregiver amount. | ||
|
17 changes: 17 additions & 0 deletions
17
...meters/gov/provinces/sk/tax/income/credits/sk_caregiver_amount/age_threshold/elderly.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
description: Saskatchewan qualifies elderly dependants under the Caregiver Tax Credit Amount for filers' dependants with this age or older. | ||
values: | ||
2022-01-01: 65 | ||
metadata: | ||
unit: year | ||
label: Saskatchewan Caregiver Tax Credit elderly dependant age eligibility | ||
reference: | ||
- title: 2023 Sasktachewan Personal Tax Credits Return Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-23e.pdf#page=1 | ||
- title: 2023 Sasktachewan Personal Tax Credits Return Calculation Form Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-23e.pdf#page=1 | ||
- title: 2022 Sasktachewan Personal Tax Credits Return Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-22e.pdf#page=1 | ||
- title: 2022 Sasktachewan Sasktachewan Personal Tax Credits Return Calculation Form Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-lp-22e.pdf#page=5 | ||
- title: Sasktachewan The Income Tax Act, 2000 | ||
href: https://pubsaskdev.blob.core.windows.net/pubsask-prod/806/I2-01.pdf#page=13 #page=14,16,17 |
17 changes: 17 additions & 0 deletions
17
...ameters/gov/provinces/sk/tax/income/credits/sk_caregiver_amount/age_threshold/infirm.yaml
PavelMakarchuk marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
description: Saskatchewan qualifies infirm dependants under the Caregiver Tax Credit Amount for filers' dependants with this age or older. | ||
values: | ||
2022-01-01: 18 | ||
metadata: | ||
unit: year | ||
label: Saskatchewan Caregiver Tax Credit infirm dependant age eligibility | ||
reference: | ||
- title: 2023 Sasktachewan Personal Tax Credits Return Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-23e.pdf#page=1 | ||
- title: 2023 Sasktachewan Personal Tax Credits Return Calculation Form Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-23e.pdf#page=1 | ||
- title: 2022 Sasktachewan Personal Tax Credits Return Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-22e.pdf#page=1 | ||
- title: 2022 Sasktachewan Sasktachewan Personal Tax Credits Return Calculation Form Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-lp-22e.pdf#page=5 | ||
- title: Sasktachewan The Income Tax Act, 2000 | ||
href: https://pubsaskdev.blob.core.windows.net/pubsask-prod/806/I2-01.pdf#page=13 #page=14,16,17 |
18 changes: 18 additions & 0 deletions
18
...ine_canada/parameters/gov/provinces/sk/tax/income/credits/sk_caregiver_amount/amount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
description: Saskatchewan allows for this maximum caregiver amount. | ||
values: | ||
2022-01-01: 9_789 | ||
2023-01-01: 10_405 | ||
metadata: | ||
unit: currency-CAD | ||
label: Saskatchewan Caregiver Tax Credit maximum amount | ||
reference: | ||
- title: 2023 Sasktachewan Personal Tax Credits Return Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-23e.pdf#page=1 | ||
- title: 2023 Sasktachewan Personal Tax Credits Return Calculation Form Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-23e.pdf#page=1 | ||
- title: 2022 Sasktachewan Personal Tax Credits Return Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-22e.pdf#page=1 | ||
- title: 2022 Sasktachewan Sasktachewan Personal Tax Credits Return Calculation Form Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-lp-22e.pdf#page=5 | ||
- title: Sasktachewan The Income Tax Act, 2000 | ||
PavelMakarchuk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
href: https://pubsaskdev.blob.core.windows.net/pubsask-prod/806/I2-01.pdf#page=13 #page=14,16,17 |
19 changes: 19 additions & 0 deletions
19
...ters/gov/provinces/sk/tax/income/credits/sk_caregiver_amount/income_threshold/higher.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
description: Saskatchewan reduces the maximum Caregiver Tax Credit amount by the difference of this threshold and the dependants income. | ||
|
||
values: | ||
2022-01-01: 26_506 | ||
2023-01-01: 28_175 | ||
metadata: | ||
unit: currency-CAD | ||
label: Saskatchewan Caregiver Tax Credit Higher Income Threshold for the Dependant | ||
reference: | ||
- title: 2023 Sasktachewan Personal Tax Credits Return Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-23e.pdf#page=1 | ||
- title: 2023 Sasktachewan Personal Tax Credits Return Calculation Form Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-23e.pdf#page=1 | ||
- title: 2022 Sasktachewan Personal Tax Credits Return Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-22e.pdf#page=1 | ||
- title: 2022 Sasktachewan Sasktachewan Personal Tax Credits Return Calculation Form Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-lp-22e.pdf#page=5 | ||
- title: Sasktachewan The Income Tax Act, 2000 | ||
href: https://pubsaskdev.blob.core.windows.net/pubsask-prod/806/I2-01.pdf#page=13 #page=14,16,17 |
20 changes: 20 additions & 0 deletions
20
...eters/gov/provinces/sk/tax/income/credits/sk_caregiver_amount/income_threshold/lower.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
description: Saskatchewan reduces the maximum Caregiver Tax Credit Amount for dependants with net income is above this threshold. | ||
|
||
values: | ||
2022-01-01: 16_717 | ||
2023-01-01: 17_770 | ||
metadata: | ||
unit: currency-CAD | ||
label: Saskatchewan Caregiver Tax Credit Lower Income Threshold for the dependant | ||
reference: | ||
- title: 2023 Sasktachewan Personal Tax Credits Return Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-23e.pdf#page=1 | ||
- title: 2023 Sasktachewan Personal Tax Credits Return Calculation Form Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-23e.pdf#page=1 | ||
- title: 2022 Sasktachewan Personal Tax Credits Return Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-22e.pdf#page=1 | ||
- title: 2022 Sasktachewan Sasktachewan Personal Tax Credits Return Calculation Form Line9 Caregiver Amount | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-lp-22e.pdf#page=5 | ||
- title: Sasktachewan The Income Tax Act, 2000 | ||
href: https://pubsaskdev.blob.core.windows.net/pubsask-prod/806/I2-01.pdf#page=13 #page=14,16,17 | ||
|
99 changes: 99 additions & 0 deletions
99
...da/tests/gov/provinces/sk/tax/income/credits/sk_caregiver_amount/sk_caregiver_amount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
- name: 2023 Do not have eligible dependants | ||
period: 2023 | ||
input: | ||
province_code: SK | ||
sk_caregiver_amount_eligibile_person: false | ||
dependant_income: 10_000 | ||
output: | ||
sk_caregiver_amount: 0 | ||
|
||
- name: 2023 Have eligible dependants with income at lower income threshold | ||
period: 2023 | ||
input: | ||
province_code: SK | ||
sk_caregiver_amount_eligibile_person: true | ||
dependant_income: 17_770 | ||
output: | ||
sk_caregiver_amount: 10_405 | ||
|
||
- name: 2023 Have eligible dependants with income below lower income threshold | ||
period: 2023 | ||
input: | ||
province_code: SK | ||
sk_caregiver_amount_eligibile_person: true | ||
dependant_income: 17_669 | ||
output: | ||
sk_caregiver_amount: 10_405 | ||
|
||
- name: 2023 Have eligible dependants with income between the lower income threshold and the higher income threshold | ||
period: 2023 | ||
input: | ||
province_code: SK | ||
sk_caregiver_amount_eligibile_person: true | ||
dependant_income: 20_000 | ||
output: | ||
sk_caregiver_amount: 8_175 | ||
|
||
- name: 2023 Have eligible dependants with income at higher income threshold | ||
period: 2023 | ||
input: | ||
province_code: SK | ||
sk_caregiver_amount_eligibile_person: true | ||
dependant_income: 28_175 | ||
output: | ||
sk_caregiver_amount: 0 | ||
|
||
- name: 2023 Have eligible dependants with income above higher income threshold | ||
period: 2023 | ||
input: | ||
province_code: SK | ||
sk_caregiver_amount_eligibile_person: false | ||
dependant_income: 28_220 | ||
output: | ||
sk_caregiver_amount: 0 | ||
|
||
- name: 2022 Have eligible dependants with income at lower income threshold | ||
period: 2022 | ||
input: | ||
province_code: SK | ||
sk_caregiver_amount_eligibile_person: true | ||
dependant_income: 16_717 | ||
output: | ||
sk_caregiver_amount: 9789 | ||
|
||
- name: 2022 Have eligible dependants with income below lower income threshold | ||
period: 2022 | ||
input: | ||
province_code: SK | ||
sk_caregiver_amount_eligibile_person: true | ||
dependant_income: 15_669 | ||
output: | ||
sk_caregiver_amount: 9789 | ||
|
||
- name: 2022 Have eligible dependants with income between the lower income threshold and the higher income threshold | ||
period: 2022 | ||
input: | ||
province_code: SK | ||
sk_caregiver_amount_eligibile_person: true | ||
dependant_income: 20_000 | ||
output: | ||
sk_caregiver_amount: 6_506 | ||
|
||
- name: 2022 Have eligible dependants with income at higher income threshold | ||
period: 2022 | ||
input: | ||
province_code: SK | ||
sk_caregiver_amount_eligibile_person: true | ||
dependant_income: 26_506 | ||
output: | ||
sk_caregiver_amount: 0 | ||
|
||
- name: 2022 Have eligible dependants with income above higher income threshold | ||
period: 2022 | ||
input: | ||
province_code: SK | ||
sk_caregiver_amount_eligibile_person: false | ||
dependant_income: 28_220 | ||
output: | ||
sk_caregiver_amount: 0 | ||
|
71 changes: 71 additions & 0 deletions
71
...inces/sk/tax/income/credits/sk_caregiver_amount/sk_caregiver_amount_eligibile_person.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
- name: Have eligible infirm dependants | ||
period: 2023 | ||
input: | ||
province_code: SK | ||
age: 19 | ||
dependant_lives_with_filer: true | ||
is_disabled: true | ||
parent_or_grandparent: false | ||
dependant_income: 15_000 | ||
output: | ||
sk_caregiver_amount_eligibile_person: true | ||
|
||
- name: Do not have eligible elderly dependants | ||
period: 2022 | ||
input: | ||
province_code: SK | ||
age: 64 | ||
dependant_lives_with_filer: true | ||
is_disabled: false | ||
parent_or_grandparent: true | ||
dependant_income: 15_000 | ||
output: | ||
sk_caregiver_amount_eligibile_person: false | ||
|
||
- name: Do not have eligible dependants because of dependant's high net income | ||
period: 2022 | ||
input: | ||
province_code: SK | ||
age: 66 | ||
dependant_lives_with_filer: true | ||
is_disabled: false | ||
parent_or_grandparent: true | ||
dependant_income: 26_507 | ||
output: | ||
sk_caregiver_amount_eligibile_person: false | ||
|
||
- name: Do not have eligible dependants because of dependant's high net income | ||
period: 2024 | ||
input: | ||
province_code: SK | ||
age: 66 | ||
dependant_lives_with_filer: true | ||
is_disabled: false | ||
parent_or_grandparent: true | ||
dependant_income: 28_176 | ||
output: | ||
sk_caregiver_amount_eligibile_person: false | ||
|
||
- name: Have eligible elderly dependants | ||
period: 2024 | ||
input: | ||
province_code: SK | ||
age: 66 | ||
dependant_lives_with_filer: true | ||
is_disabled: false | ||
parent_or_grandparent: true | ||
dependant_income: 28_174 | ||
output: | ||
sk_caregiver_amount_eligibile_person: true | ||
|
||
- name: Do not Have eligible infirm dependants | ||
period: 2022 | ||
input: | ||
province_code: SK | ||
age: 15 | ||
dependant_lives_with_filer: true | ||
is_disabled: true | ||
parent_or_grandparent: false | ||
dependant_income: 16_716 | ||
output: | ||
sk_caregiver_amount_eligibile_person: false |
22 changes: 22 additions & 0 deletions
22
...ada/variables/gov/provinces/sk/tax/income/credits/sk_caregiver_amount/dependant_income.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from policyengine_canada.model_api import * | ||
|
||
|
||
class dependant_income(Variable): | ||
value_type = float | ||
entity = Person | ||
label = "Dependant Income" | ||
unit = CAD | ||
definition_period = YEAR | ||
reference = ( | ||
"https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-23e.pdf#page=1", | ||
"https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-23e.pdf#page=1", | ||
"https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-22e.pdf#page=1", | ||
"https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-lp-22e.pdf#page=5", | ||
"https://pubsaskdev.blob.core.windows.net/pubsask-prod/806/I2-01.pdf#page=13", # page=14,16,17 | ||
) | ||
defined_for = ProvinceCode.SK | ||
|
||
def formula(person, period, parameters): | ||
dependant = person("is_dependant", period) | ||
income = person("individual_net_income", period) | ||
return dependant * income |
16 changes: 16 additions & 0 deletions
16
...les/gov/provinces/sk/tax/income/credits/sk_caregiver_amount/dependant_lives_with_filer.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from policyengine_canada.model_api import * | ||
|
||
|
||
class dependant_lives_with_filer(Variable): | ||
value_type = bool | ||
entity = Person | ||
label = "Whether a dependant lives with the filer" | ||
definition_period = YEAR | ||
reference = ( | ||
"https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-23e.pdf#page=1", | ||
"https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-23e.pdf#page=1", | ||
"https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-22e.pdf#page=1", | ||
"https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-lp-22e.pdf#page=5", | ||
"https://pubsaskdev.blob.core.windows.net/pubsask-prod/806/I2-01.pdf#page=13", # page=14,16,17 | ||
) | ||
defined_for = ProvinceCode.SK |
16 changes: 16 additions & 0 deletions
16
...ariables/gov/provinces/sk/tax/income/credits/sk_caregiver_amount/parent_or_grandparent.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from policyengine_canada.model_api import * | ||
|
||
|
||
class parent_or_grandparent(Variable): | ||
value_type = bool | ||
entity = Person | ||
label = " Is the filers' parent or grandparent" | ||
definition_period = YEAR | ||
reference = ( | ||
"https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-23e.pdf#page=1", | ||
"https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-23e.pdf#page=1", | ||
"https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-22e.pdf#page=1", | ||
"https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-lp-22e.pdf#page=5", | ||
"https://pubsaskdev.blob.core.windows.net/pubsask-prod/806/I2-01.pdf#page=13", # page=14,16,17 | ||
) | ||
defined_for = ProvinceCode.SK |
30 changes: 30 additions & 0 deletions
30
.../variables/gov/provinces/sk/tax/income/credits/sk_caregiver_amount/sk_caregiver_amount.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from policyengine_canada.model_api import * | ||
|
||
|
||
class sk_caregiver_amount(Variable): | ||
value_type = float | ||
entity = Person | ||
label = "Saskatchewan Caregiver Amount" | ||
unit = CAD | ||
definition_period = YEAR | ||
reference = ( | ||
"https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-23e.pdf#page=1", | ||
"https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-23e.pdf#page=1", | ||
"https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk/td1sk-22e.pdf#page=1", | ||
"https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1sk-ws/td1sk-ws-lp-22e.pdf#page=5", | ||
"https://pubsaskdev.blob.core.windows.net/pubsask-prod/806/I2-01.pdf#page=13", # page=14,16,17 | ||
) | ||
defined_for = ProvinceCode.SK | ||
|
||
def formula(person, period, parameters): | ||
p = parameters( | ||
period | ||
).gov.provinces.sk.tax.income.credits.sk_caregiver_amount | ||
eligible_person = person( | ||
"sk_caregiver_amount_eligibile_person", period | ||
) | ||
dependant_income = person("dependant_income", period) | ||
|
||
return eligible_person * min( | ||
p.amount, p.income_threshold.higher - dependant_income | ||
) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.