Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-canada into pr/okeyiii/443
  • Loading branch information
PavelMakarchuk committed Feb 29, 2024
2 parents b115dd3 + 42102bf commit 334c8d8
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.91.0] - 2024-02-29 14:47:21

### Added

- British Columbia pension income amount.

## [0.90.0] - 2024-02-29 02:49:05

### Added
Expand Down Expand Up @@ -706,6 +712,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0



[0.91.0]: https://github.com/PolicyEngine/policyengine-canada/compare/0.90.0...0.91.0
[0.90.0]: https://github.com/PolicyEngine/policyengine-canada/compare/0.89.0...0.90.0
[0.89.0]: https://github.com/PolicyEngine/policyengine-canada/compare/0.88.1...0.89.0
[0.88.1]: https://github.com/PolicyEngine/policyengine-canada/compare/0.88.0...0.88.1
Expand Down
5 changes: 5 additions & 0 deletions changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -586,3 +586,8 @@
added:
- British Columbia basic personal amount.
date: 2024-02-29 02:49:05
- bump: minor
changes:
added:
- British Columbia pension income amount.
date: 2024-02-29 14:47:21
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ values:
- bc_tax_reduction_credit
- bc_age_credit
- bc_basic_personal_amount
- bc_pension_income_amount

metadata:
unit: list
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
description: British Columbia caps the pension benefit at this amount.
values:
2022-01-01: 1_000
metadata:
unit: currency-CAD
period: year
label: British Columbia pension benefit cap
reference:
- title: 2023 British Columbia Personal Tax Credits Return, TD1BC
href: https://www.canada.ca/content/dam/cra-arc/formspubs/pbg/td1bc/td1bc-23e.pdf#page=1
- title: British Columbia Income Tax Act § 4.32
href: https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/96215_00_multi#section4.32
- title: 2022 British Columbia Personal Tax Credits Return, TD1BC
href: https://tsaykeh.com/files/pdf/1650179447_BC%20Tax%20Form.pdf#page=1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- name: Pension income is larger than the maximum amount
period: 2023
input:
province_code: BC
pension_and_savings_plan_income: 1_001
output:
bc_pension_income_amount: 1_000

- name: Pension income is less than the maximum amount
period: 2023
input:
province_code: BC
pension_and_savings_plan_income: 800
output:
bc_pension_income_amount: 800
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from policyengine_canada.model_api import *


class bc_pension_income_amount(Variable):
value_type = float
entity = Person
label = "British Columbia pension income amount"
unit = CAD
definition_period = YEAR
defined_for = ProvinceCode.BC

def formula(person, period, parameters):
pension_income = person("pension_and_savings_plan_income", period)
p = parameters(
period
).gov.provinces.bc.tax.income.credits.pension_income_amount
# Capped at a certain amount
return min_(p.cap, pension_income)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

setup(
name="policyengine-canada",
version="0.90.0",
version="0.91.0",
author="PolicyEngine",
author_email="hello@policyengine.org",
classifiers=[
Expand Down

0 comments on commit 334c8d8

Please sign in to comment.