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

Nova Scotia Basic personal amount #407

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c00d35d
Add parameters
okeyiii Jul 13, 2023
bc34af8
Add Variables and Partial Tests
okeyiii Jul 13, 2023
0f71af7
Nova Scotia Basic Personal Amount
okeyiii Jul 17, 2023
c9a2626
Complete
okeyiii Jul 17, 2023
cafa9ed
Nova Scotia Basic Personal Amount
okeyiii Jul 24, 2023
f13d546
Nova Scotia Basic Personal Amount
okeyiii Jul 31, 2023
ce10cc0
Nova Scotia Basic Personal Amount
okeyiii Jul 31, 2023
a8f1e15
Nova Scotia Basic Personal Amount
okeyiii Aug 8, 2023
02b51c5
Nova Scotia Basic Personal Amount
okeyiii Aug 10, 2023
c526ad9
Nova Scotia Basic Personal Amount
okeyiii Aug 15, 2023
e11e19b
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
okeyiii Aug 16, 2023
18136a1
Nova Scotia Basic Personal Amount
okeyiii Aug 16, 2023
948dce7
Nova Scotia Basic Personal Amount
okeyiii Aug 29, 2023
7bbcf3a
Nova Scotia Basic Personal Amount
okeyiii Aug 30, 2023
219e0ed
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
okeyiii Aug 30, 2023
b58867b
rename parameters
PavelMakarchuk Aug 30, 2023
dec4499
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
okeyiii Sep 6, 2023
92d4e06
Nova Scotia Basic Personal Amount
okeyiii Sep 6, 2023
dc95143
Merge branch 'okeyiii/issue395' of https://github.com/okeyiii/policye…
okeyiii Sep 6, 2023
36bb813
Update policyengine_canada/variables/gov/provinces/ns/tax/income/cred…
PavelMakarchuk Sep 9, 2023
e122967
Update changelog_entry.yaml
PavelMakarchuk Sep 9, 2023
a4e1df7
remove additional variable
PavelMakarchuk Sep 10, 2023
6d0a860
unit
PavelMakarchuk Sep 10, 2023
496cbea
Nova Scotia Basic Personal Amount
okeyiii Oct 6, 2023
c28e4d3
Merge branch 'okeyiii/issue395' of https://github.com/okeyiii/policye…
okeyiii Oct 6, 2023
793adca
Nova Scotia Basic Personal Amount
okeyiii Oct 6, 2023
4919431
Nova Scotia Basic Personal Amount
okeyiii Oct 8, 2023
3576b40
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
okeyiii Oct 11, 2023
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
Prev Previous commit
Next Next commit
Nova Scotia Basic Personal Amount
Fixes #395
  • Loading branch information
okeyiii committed Aug 16, 2023
commit 18136a1e4c0177f94fd7172f2838ed3306bc2689
Original file line number Diff line number Diff line change
@@ -26,6 +26,6 @@
period: 2023
input:
province_code: NS
total_individual_pre_tax_income: 76_000
total_individual_pre_tax_income: 75_001
output:
ns_basic_personal_amount: 8_481
Original file line number Diff line number Diff line change
@@ -20,7 +20,9 @@ def formula(person, period, parameters):
taxable_income = person("total_individual_pre_tax_income", period)

# Calculate additional amount added to base amount
okeyiii marked this conversation as resolved.
Show resolved Hide resolved
exceedance = taxable_income - p.additional_amount.income_threshold
exceedance = max_(
taxable_income - p.additional_amount.income_threshold, 0
)
reduced_additional_amount = (
okeyiii marked this conversation as resolved.
Show resolved Hide resolved
p.additional_amount.additional_amount
- p.additional_amount.applicable_rate * exceedance