-
Notifications
You must be signed in to change notification settings - Fork 35
Yukon Age Amount #294
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
Closed
Closed
Yukon Age Amount #294
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
b7a17cc
parameters
RuoqiTan 782a535
parameters
RuoqiTan 1c33a9b
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
RuoqiTan 7a2ee7d
Yukon Age Amount
RuoqiTan 8c812dc
Merge branch 'RuoqiTan/issue293' of https://github.com/RuoqiTan/polic…
RuoqiTan 16c6f07
test
RuoqiTan 33b11f6
variables & test
RuoqiTan 3031edd
name
RuoqiTan 33ca377
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
RuoqiTan fba2b27
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
RuoqiTan 7240544
changes
RuoqiTan ec28772
test
RuoqiTan 01885f1
add 2022
RuoqiTan 1571571
format
RuoqiTan 141d19f
Update policyengine_canada/parameters/gov/provinces/yt/tax/income/cre…
RuoqiTan 8572cb5
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
RuoqiTan 4d258a7
Yukon Age Amount
RuoqiTan e4a98a5
Merge branch 'RuoqiTan/issue293' of https://github.com/RuoqiTan/polic…
RuoqiTan b5b6940
Yukon Age Amount
RuoqiTan f0e500a
changes
RuoqiTan d72d574
pages
RuoqiTan 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 hidden or 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,4 @@ | ||
| - bump: minor | ||
| changes: | ||
| added: | ||
| - Yukon age amount. |
13 changes: 13 additions & 0 deletions
13
policyengine_canada/parameters/gov/provinces/yt/tax/income/credits/age_amount/age.yaml
This file contains hidden or 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,13 @@ | ||
| description: Yukon qualifies filers for the age amount credit at or above this age threshold. | ||
| values: | ||
| 2022-01-01: 65 | ||
| metadata: | ||
| unit: year | ||
| label: Yukon age amount eligible age | ||
| reference: | ||
| - title: Worksheet for the Yukon 2023 Personal Tax Credits Return | ||
RuoqiTan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1yt-ws/td1yt-ws-23e.pdf#page=1 | ||
| - title: Yukon Income Tax Act -- Age Credit | ||
| href: https://laws.yukon.ca/cms/images/LEGISLATION/PRINCIPAL/2002/2002-0118/2002-0118.pdf#page=8 | ||
| - title: Worksheet for the Yukon 2022 Personal Tax Credits Return | ||
| href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1yt-ws/td1yt-ws-22e.pdf#page=1 | ||
14 changes: 14 additions & 0 deletions
14
...gine_canada/parameters/gov/provinces/yt/tax/income/credits/age_amount/maximum_amount.yaml
This file contains hidden or 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,14 @@ | ||
| description: Yukon provides this maximum amount under the age amount credit. | ||
| values: | ||
| 2022-01-01: 7_898 | ||
| 2023-01-01: 8_396 | ||
RuoqiTan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| metadata: | ||
| unit: currency-CAD | ||
| label: Yukon age amount maximum amount | ||
| reference: | ||
| - title: Worksheet for the Yukon 2023 Personal Tax Credits Return | ||
| href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1yt-ws/td1yt-ws-23e.pdf#page=1 | ||
| - title: Yukon Income Tax Act -- Age Credit | ||
| href: https://laws.yukon.ca/cms/images/LEGISLATION/PRINCIPAL/2002/2002-0118/2002-0118.pdf#page=8 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does this page reference the age credit? Not sure if I can see it |
||
| - title: Worksheet for the Yukon 2022 Personal Tax Credits Return | ||
| href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1yt-ws/td1yt-ws-22e.pdf#page=1 | ||
24 changes: 24 additions & 0 deletions
24
policyengine_canada/parameters/gov/provinces/yt/tax/income/credits/age_amount/rate.yaml
RuoqiTan marked this conversation as resolved.
Show resolved
Hide resolved
RuoqiTan marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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,24 @@ | ||
| description: Yukon reduces the age amount credit at this rate. | ||
| brackets: | ||
| - threshold: | ||
| 2022-01-01: 0 | ||
| rate: | ||
| 2022-01-01: 0 | ||
| - threshold: | ||
| 2022-01-01: 39_826 | ||
RuoqiTan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 2023-01-01: 42_335 | ||
| rate: | ||
| 2022-01-01: 0.15 | ||
|
|
||
| metadata: | ||
| type: marginal_rate | ||
| threshold_unit: currency-CAD | ||
| rate_unit: /1 | ||
| label: Yukon age amount applicable rate | ||
| reference: | ||
| - title: Worksheet for the Yukon 2023 Personal Tax Credits Return | ||
| href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1yt-ws/td1yt-ws-23e.pdf#page=1 | ||
| - title: Yukon Income Tax Act -- Age Credit | ||
| href: https://laws.yukon.ca/cms/images/LEGISLATION/PRINCIPAL/2002/2002-0118/2002-0118.pdf#page=8 | ||
| - title: Worksheet for the Yukon 2022 Personal Tax Credits Return | ||
| href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1yt-ws/td1yt-ws-22e.pdf#page=1 | ||
35 changes: 35 additions & 0 deletions
35
policyengine_canada/tests/gov/provinces/yt/tax/income/credits/yt_age_amount.yaml
This file contains hidden or 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,35 @@ | ||
| - name: Not eligible for age amount | ||
| period: 2023 | ||
| input: | ||
| province_code: YT | ||
| individual_net_income: 10_000 | ||
| age: 64 | ||
| output: | ||
| yt_age_amount: 0 | ||
|
|
||
| - name: Not eligible through net income | ||
| period: 2023 | ||
| input: | ||
| province_code: YT | ||
| individual_net_income: 100_000 | ||
| age: 70 | ||
| output: | ||
| yt_age_amount: 0 | ||
|
|
||
| - name: Eligible & maximum age amount (net income < base amount) | ||
| period: 2023 | ||
| input: | ||
| province_code: YT | ||
| individual_net_income: 10_000 | ||
| age: 65 | ||
| output: | ||
| yt_age_amount: 8_396 | ||
|
|
||
| - name: Eligible & net income between base amount and maximum amount (8396-(62335-42335)*0.15 = 5396) | ||
| period: 2023 | ||
| input: | ||
| province_code: YT | ||
| individual_net_income: 62_335 | ||
| age: 70 | ||
| output: | ||
| yt_age_amount: 5_396 |
18 changes: 18 additions & 0 deletions
18
policyengine_canada/variables/gov/provinces/yt/tax/income/credits/yt_age_amount.py
This file contains hidden or 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 @@ | ||
| from policyengine_canada.model_api import * | ||
|
|
||
|
|
||
| class yt_age_amount(Variable): | ||
| value_type = float | ||
| entity = Person | ||
| label = "Yukon age amount" | ||
| definition_period = YEAR | ||
| defined_for = ProvinceCode.YT | ||
|
|
||
| def formula(person, period, parameters): | ||
| income = person("individual_net_income", period) | ||
| age = person("age", period) | ||
| p = parameters(period).gov.provinces.yt.tax.income.credits.age_amount | ||
| reduction = p.rate.calc(income) | ||
| reduced_amount = max_(p.maximum_amount - reduction, 0) | ||
RuoqiTan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| age_eligible = age >= p.age | ||
| return age_eligible * reduced_amount | ||
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.
Uh oh!
There was an error while loading. Please reload this page.