Skip to content

Commit

Permalink
British Columbia Disability Credit
Browse files Browse the repository at this point in the history
Fixes #464
  • Loading branch information
7qiwx committed Feb 8, 2024
1 parent cabcf0e commit 28648eb
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
input:
province_code: BC
age: 17
childcare_expenses_claimed_by_another_person: 3_000
childcare_received: 3_000
output:
bc_disability_credit_additional_amount: 5_242

Expand All @@ -12,7 +12,7 @@
input:
province_code: BC
age: 17
childcare_expenses_claimed_by_another_person: 3_500
childcare_received: 3_500
output:
bc_disability_credit_additional_amount: 4_786

Expand All @@ -21,7 +21,7 @@
input:
province_code: BC
age: 17
childcare_expenses_claimed_by_another_person: 15_000
childcare_received: 15_000
output:
bc_disability_credit_additional_amount: 0

Expand All @@ -30,7 +30,7 @@
input:
province_code: BC
age: 18
childcare_expenses_claimed_by_another_person: 15_000
childcare_received: 15_000
output:
bc_disability_credit_additional_amount: 0

Expand All @@ -39,7 +39,7 @@
input:
province_code: BC
age: 17
childcare_expenses_claimed_by_another_person: 2_800
childcare_received: 2_800
output:
bc_disability_credit_additional_amount: 4_946

Expand All @@ -48,7 +48,7 @@
input:
province_code: BC
age: 17
childcare_expenses_claimed_by_another_person: 3_000
childcare_received: 3_000
output:
bc_disability_credit_additional_amount: 4_817

Expand All @@ -57,7 +57,7 @@
input:
province_code: BC
age: 17
childcare_expenses_claimed_by_another_person: 15_000
childcare_received: 15_000
output:
bc_disability_credit_additional_amount: 0

Expand All @@ -66,6 +66,6 @@
input:
province_code: BC
age: 18
childcare_expenses_claimed_by_another_person: 15_000
childcare_received: 15_000
output:
bc_disability_credit_additional_amount: 0
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ def formula(person, period, parameters):
"bc_disability_credit_additional_amount", period
)
total_credit_amount = p.base + additional_amount
return min_(p.additional_amount.cap, total_credit_amount)
return min_(p.cap, total_credit_amount)
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class bc_disability_credit_additional_amount(Variable):
def formula(person, period, parameters):
p = parameters(period).gov.provinces.bc.tax.income.credits.disability
childcare_expenses = person(
"childcare_expenses_claimed_by_another_person", period
"childcare_received", period
)
reduced_childcare_expenses = max_(
0,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from policyengine_canada.model_api import *

class childcare_received(Variable):
value_type = float
entity = Person
label = "Amount of Childcare received which was claimed by another person"
unit = CAD
definition_period = YEAR

0 comments on commit 28648eb

Please sign in to comment.