-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #468 from 7qiwx/7qiwx/issue464
British Columbia Disability Credit
- Loading branch information
Showing
12 changed files
with
269 additions
and
3 deletions.
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,4 @@ | ||
- bump: minor | ||
changes: | ||
added: | ||
- British Columbia disability credit. |
25 changes: 25 additions & 0 deletions
25
...ada/parameters/gov/provinces/bc/tax/income/credits/disability/additional_amount/base.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,25 @@ | ||
description: British Columbia provides an additional disability credit of this amount, based on age. | ||
brackets: | ||
- threshold: | ||
2022-01-01: 0 | ||
amount: | ||
2022-01-01: 4_946 | ||
2023-01-01: 5_242 | ||
2024-01-01: 5_505 | ||
- threshold: | ||
2022-01-01: 18 | ||
amount: | ||
2022-01-01: 0 | ||
metadata: | ||
type: single_amount | ||
threshold_unit: year | ||
amount_unit: currency-CAD | ||
period: year | ||
label: British Columbia disability credit additional amount base | ||
reference: | ||
- title: B.C. basic personal income tax credits | ||
href: https://www2.gov.bc.ca/gov/content/taxes/income-taxes/personal/credits/basic | ||
- title: British Columbia Income Tax Act (4.51) | ||
href: https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/96215_00_multi#section4.51 | ||
- title: British Columbia disability amount worksheet 2022 | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5010-d/5010-d-22e.pdf#page=1 |
17 changes: 17 additions & 0 deletions
17
...inces/bc/tax/income/credits/disability/additional_amount/childcare_expense_threshold.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: British Columbia reduces the additional disability credit amount by the excess of childcare expenses over this threshold. | ||
values: | ||
2022-01-01: 2_871 | ||
2023-01-01: 3_044 | ||
2024-01-01: 3_196 | ||
|
||
metadata: | ||
unit: currency-CAD | ||
period: year | ||
label: British Columbia disability credit additional amount childcare expense threshold | ||
reference: | ||
- title: B.C. basic personal income tax credits | ||
href: https://www2.gov.bc.ca/gov/content/taxes/income-taxes/personal/credits/basic | ||
- title: British Columbia Income Tax Act (4.51) | ||
href: https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/96215_00_multi#section4.51 | ||
- title: British Columbia disability amount worksheet 2022 | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5010-d/5010-d-22e.pdf#page=1 |
16 changes: 16 additions & 0 deletions
16
policyengine_canada/parameters/gov/provinces/bc/tax/income/credits/disability/base.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,16 @@ | ||
description: British Columbia provides this disability credit base amount. | ||
values: | ||
2022-01-01: 8_477 | ||
2023-01-01: 8_986 | ||
2024-01-01: 9_435 | ||
metadata: | ||
unit: currency-CAD | ||
period: year | ||
label: British Columbia disability credit base amount | ||
reference: | ||
- title: B.C. basic personal income tax credits | ||
href: https://www2.gov.bc.ca/gov/content/taxes/income-taxes/personal/credits/basic | ||
- title: British Columbia Income Tax Act (4.51) | ||
href: https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/96215_00_multi#section4.51 | ||
- title: British Columbia disability amount worksheet 2022 | ||
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5010-d/5010-d-22e.pdf#page=1 |
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
7 changes: 5 additions & 2 deletions
7
policyengine_canada/parameters/gov/provinces/bc/tax/income/credits/refundable.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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
description: British Columbia list of refundable tax credits. | ||
description: British Columbia provides ty of refundable tax credits. | ||
values: | ||
2022-01-01: | ||
- bc_climate_action_tax_credit | ||
- bc_disability_credit | ||
|
||
metadata: | ||
unit: program | ||
unit: list | ||
period: year | ||
label: British Columbia refundable tax credits |
35 changes: 35 additions & 0 deletions
35
.../tests/gov/provinces/bc/tax/income/credits/bc_disability_credit/bc_disability_credit.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,35 @@ | ||
- name: Eligible person with disability credit less than limit 2023 | ||
period: 2023 | ||
input: | ||
province_code: BC | ||
bc_disability_credit_eligible: true | ||
bc_disability_credit_additional_amount: 0 | ||
output: | ||
bc_disability_credit: 8_986 | ||
|
||
- name: Ineligible person 2023 | ||
period: 2023 | ||
input: | ||
province_code: BC | ||
bc_disability_credit_eligible: false | ||
bc_disability_credit_additional_amount: 5_242 | ||
output: | ||
bc_disability_credit: 0 | ||
|
||
- name: Eligible person with disability credit less than limit 2022 | ||
period: 2022 | ||
input: | ||
province_code: BC | ||
bc_disability_credit_eligible: true | ||
bc_disability_credit_additional_amount: 0 | ||
output: | ||
bc_disability_credit: 8_477 | ||
|
||
- name: Ineligible person 2022 | ||
period: 2022 | ||
input: | ||
province_code: BC | ||
bc_disability_credit_eligible: false | ||
bc_disability_credit_additional_amount: 4_946 | ||
output: | ||
bc_disability_credit: 0 |
71 changes: 71 additions & 0 deletions
71
...es/bc/tax/income/credits/bc_disability_credit/bc_disability_credit_additional_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,71 @@ | ||
- name: Eligible person under 18 with childcare_received less than threshold 2023 | ||
period: 2023 | ||
input: | ||
province_code: BC | ||
age: 17 | ||
care_expenses: 3_000 | ||
output: | ||
bc_disability_credit_additional_amount: 5_242 | ||
|
||
- name: Eligible person under 18 with childcare_received greater than threshold, less than max_amount_child 2023 | ||
period: 2023 | ||
input: | ||
province_code: BC | ||
age: 17 | ||
care_expenses: 3_500 | ||
output: | ||
bc_disability_credit_additional_amount: 4_786 | ||
|
||
- name: Eligible person under 18 with childcare_received greater than max_amount_child 2023 | ||
period: 2023 | ||
input: | ||
province_code: BC | ||
age: 17 | ||
care_expenses: 15_000 | ||
output: | ||
bc_disability_credit_additional_amount: 0 | ||
|
||
- name: Ineligible person 2023 | ||
period: 2023 | ||
input: | ||
province_code: BC | ||
age: 18 | ||
care_expenses: 15_000 | ||
output: | ||
bc_disability_credit_additional_amount: 0 | ||
|
||
- name: Eligible person under 18 with childcare_received less than threshold 2022 | ||
period: 2022 | ||
input: | ||
province_code: BC | ||
age: 17 | ||
care_expenses: 2_800 | ||
output: | ||
bc_disability_credit_additional_amount: 4_946 | ||
|
||
- name: Eligible person under 18 with childcare_received greater than threshold, less than max_amount_child 2022 | ||
period: 2022 | ||
input: | ||
province_code: BC | ||
age: 17 | ||
care_expenses: 3_000 | ||
output: | ||
bc_disability_credit_additional_amount: 4_817 | ||
|
||
- name: Eligible person under 18 with childcare_received greater than max_amount_child 2022 | ||
period: 2022 | ||
input: | ||
province_code: BC | ||
age: 17 | ||
care_expenses: 15_000 | ||
output: | ||
bc_disability_credit_additional_amount: 0 | ||
|
||
- name: Ineligible person 2022 | ||
period: 2022 | ||
input: | ||
province_code: BC | ||
age: 18 | ||
care_expenses: 15_000 | ||
output: | ||
bc_disability_credit_additional_amount: 0 |
31 changes: 31 additions & 0 deletions
31
...v/provinces/bc/tax/income/credits/bc_disability_credit/bc_disability_credit_eligible.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,31 @@ | ||
- name: Eligible person with disability 2023 | ||
period: 2023 | ||
input: | ||
is_disabled: true | ||
province_code: BC | ||
output: | ||
bc_disability_credit_eligible: true | ||
|
||
- name: Ineligible person without disability 2023 | ||
period: 2023 | ||
input: | ||
is_disabled: false | ||
province_code: BC | ||
output: | ||
bc_disability_credit_eligible: false | ||
|
||
- name: Eligible person with disability 2022 | ||
period: 2022 | ||
input: | ||
is_disabled: true | ||
province_code: BC | ||
output: | ||
bc_disability_credit_eligible: true | ||
|
||
- name: Ineligible person without disability 2022 | ||
period: 2022 | ||
input: | ||
is_disabled: false | ||
province_code: BC | ||
output: | ||
bc_disability_credit_eligible: false |
18 changes: 18 additions & 0 deletions
18
...ariables/gov/provinces/bc/tax/income/credits/bc_disability_credit/bc_disability_credit.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,18 @@ | ||
from policyengine_canada.model_api import * | ||
|
||
|
||
class bc_disability_credit(Variable): | ||
value_type = float | ||
entity = Person | ||
label = "British Columbia disability tax credit" | ||
unit = CAD | ||
definition_period = YEAR | ||
reference = "https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5010-d/5010-d-22e.pdf#page=1" | ||
defined_for = "bc_disability_credit_eligible" | ||
|
||
def formula(person, period, parameters): | ||
p = parameters(period).gov.provinces.bc.tax.income.credits.disability | ||
additional_amount = person( | ||
"bc_disability_credit_additional_amount", period | ||
) | ||
return p.base + additional_amount |
26 changes: 26 additions & 0 deletions
26
...nces/bc/tax/income/credits/bc_disability_credit/bc_disability_credit_additional_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,26 @@ | ||
from policyengine_canada.model_api import * | ||
|
||
|
||
class bc_disability_credit_additional_amount(Variable): | ||
value_type = float | ||
entity = Person | ||
label = "British Columbia additional disability tax credit" | ||
unit = CAD | ||
definition_period = YEAR | ||
reference = "https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/5010-d/5010-d-22e.pdf#page=1" | ||
defined_for = ProvinceCode.BC | ||
|
||
def formula(person, period, parameters): | ||
p = parameters(period).gov.provinces.bc.tax.income.credits.disability | ||
childcare_expenses = person("care_expenses", period) | ||
reduced_childcare_expenses = ( | ||
childcare_expenses | ||
- p.additional_amount.childcare_expense_threshold | ||
) | ||
excess_childcare_expenses = max_( | ||
0, | ||
reduced_childcare_expenses, | ||
) | ||
age = person("age", period) | ||
additional_amount_base = p.additional_amount.base.calc(age) | ||
return max_(0, additional_amount_base - excess_childcare_expenses) |
12 changes: 12 additions & 0 deletions
12
...gov/provinces/bc/tax/income/credits/bc_disability_credit/bc_disability_credit_eligible.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,12 @@ | ||
from policyengine_canada.model_api import * | ||
|
||
|
||
class bc_disability_credit_eligible(Variable): | ||
value_type = bool | ||
entity = Person | ||
label = "Eligible for the British Columbia disability tax credit" | ||
definition_period = YEAR | ||
defined_for = ProvinceCode.BC | ||
|
||
def formula(person, period): | ||
return person("is_disabled", period) |