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

British Columbia Disability Credit #468

Merged
merged 25 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
c2f63f7
British Columbia Disability Credit
7qiwx Nov 22, 2023
8009489
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
7qiwx Nov 22, 2023
d37ef10
BC disability credit
7qiwx Nov 22, 2023
b05d425
Resolve format
7qiwx Nov 22, 2023
0e744a5
Added changelog_entry
7qiwx Nov 22, 2023
f2fe4f8
British Columbia Disability Credit
7qiwx Dec 4, 2023
73954a6
British Columbia Disability Credit
7qiwx Dec 14, 2023
e97be2c
Added worksheet and labels
7qiwx Dec 14, 2023
231e009
Resolve comments
7qiwx Dec 19, 2023
d3b3750
British Columbia Disability Credit
7qiwx Jan 11, 2024
bfcc6a6
British Columbia Disability Credit
7qiwx Jan 25, 2024
291bf59
Fixes labels
7qiwx Jan 25, 2024
25c1193
update sphinx version
7qiwx Jan 25, 2024
cabcf0e
British Columbia Disability Credit
7qiwx Feb 1, 2024
28648eb
British Columbia Disability Credit
7qiwx Feb 8, 2024
01c4db9
fix childcare_received
7qiwx Feb 8, 2024
f2e0ea8
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
7qiwx Feb 8, 2024
e7b5d72
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
7qiwx Feb 27, 2024
a9f7c36
British Columbia Disability Credit
7qiwx Feb 27, 2024
e72a20b
Add reference to non_refundable.yaml
7qiwx Feb 27, 2024
c64ef49
format
PavelMakarchuk Feb 29, 2024
d4f12a4
net income tree
PavelMakarchuk Feb 29, 2024
1868b6c
format
PavelMakarchuk Feb 29, 2024
8669b03
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
PavelMakarchuk Mar 1, 2024
8219956
non ref file
PavelMakarchuk Mar 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
- British Columbia Disability Credit.
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: British Columbia provides an additional disability credit to filers below this age
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
values:
2023-01-01: 18
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
metadata:
unit: year
period: year
label: British Columbia disability credit additional amount age eligibility
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
reference:
- title: B.C. basic personal income tax credits
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
href: https://www2.gov.bc.ca/gov/content/taxes/income-taxes/personal/credits/basic
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
- title: Income Tax Act (4.51)
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
href: https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/96215_00_multi#section4.51
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: British Columbia reduces the additional disability credit amount by the excess of childcare expenses over this threshold.
values:
2023-01-01: 3_044
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
metadata:
unit: currency-CAD
period: year
label: British Columbia disability credit income threshold
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
reference:
- title: B.C. basic personal income tax credits
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
href: https://www2.gov.bc.ca/gov/content/taxes/income-taxes/personal/credits/basic
- title: Income Tax Act (4.51)
href: https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/96215_00_multi#section4.51
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: British Columbia limits the disability credit to this maximum base amount.
values:
2023-01-01: 14_228
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
metadata:
unit: currency-CAD
period: year
label: British Columbia disability credit max amount
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
reference:
- title: B.C. basic personal income tax credits
href: https://www2.gov.bc.ca/gov/content/taxes/income-taxes/personal/credits/basic
- title: Income Tax Act (4.51)
href: https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/96215_00_multi#section4.51
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: British Columbia provides this additional disability credit amount for younger filers.
values:
2023-01-01: 5_242
metadata:
unit: currency-CAD
period: year
label: British Columbia disability credit younger max amount
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
reference:
- title: B.C. basic personal income tax credits
href: https://www2.gov.bc.ca/gov/content/taxes/income-taxes/personal/credits/basic
- title: Income Tax Act (4.51)
href: https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/96215_00_multi#section4.51
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
description: British Columbia disability credit base amount.
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
values:
2023-01-01: 8_986
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
metadata:
unit: currency-CAD
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
label: British Columbia disability credit base
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
reference:
- title: B.C. basic personal income tax credits
href: https://www2.gov.bc.ca/gov/content/taxes/income-taxes/personal/credits/basic
- title: Income Tax Act (4.51)
href: https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/96215_00_multi#section4.51
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
- name: Eligible person over 18
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
period: 2023
input:
province_code: BC
age: 19
bc_disability_credit_eligible: true
output:
bc_disability_credit: 8_986

- name: Eligible person under 18 with childcare_received less than threshold
period: 2023
input:
province_code: BC
age: 17
bc_disability_credit_eligible: true
childcare_received: 3_000
output:
bc_disability_credit: 14_228

- name: Eligible person under 18 with childcare_received greater than threshold, less than max_amount_child
period: 2023
input:
province_code: BC
age: 17
bc_disability_credit_eligible: true
childcare_received: 3_500
output:
bc_disability_credit: 13_772

- name: Eligible person under 18 with childcare_received greater than max_amount_child
period: 2023
input:
province_code: BC
age: 17
bc_disability_credit_eligible: true
childcare_received: 15_000
output:
bc_disability_credit: 8_986

- name: Uneligible person
period: 2023
input:
province_code: BC
age: 18
bc_disability_credit_eligible: false
output:
bc_disability_credit: 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- name: Eligible person with disability
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
period: 2023
input:
is_disabled: true
province_code: BC
output:
bc_disability_credit_eligible: true

- name: Uneligible person without disability
period: 2023
input:
is_disabled: false
province_code: BC
output:
bc_disability_credit_eligible: false
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
defined_for = "bc_disability_credit_eligible"

def formula(person, period, parameters):
p = parameters(period).gov.provinces.bc.tax.income.credits.disability
childcare_received = person("childcare_received", period)
additional_amount_reduction = max_(
0, childcare_received - p.additional_amount.income_threshold
)
additional_amount_eligibile = (
person("age", period) < p.additional_amount.eligible_age
)
max_additional_amount = max_(
0, p.additional_amount.younger - additional_amount_reduction
)
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
additional_amount = where(
additional_amount_eligibile, max_additional_amount, 0
)

return min_(
p.additional_amount.max_amount_total, p.base + additional_amount
)
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
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"
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
unit = CAD
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
definition_period = YEAR
defined_for = ProvinceCode.BC

def formula(person, period):
return person("is_disabled", period)
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from policyengine_canada.model_api import *


class childcare_received(Variable):
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
value_type = float
entity = Person
label = "Childcare received"
7qiwx marked this conversation as resolved.
Show resolved Hide resolved
unit = CAD
definition_period = YEAR