-
Notifications
You must be signed in to change notification settings - Fork 27
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 #907 from PolicyEngine/fix/include_other_credits
SPI model fixes
- Loading branch information
Showing
38 changed files
with
3,790 additions
and
46 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 |
---|---|---|
|
@@ -52,3 +52,5 @@ policyengine_uk/calibration/*.h5 | |
**/*.log | ||
**/ukmod.json | ||
*.ipynb | ||
|
||
!test9.ipynb |
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,11 @@ | ||
- bump: minor | ||
changes: | ||
added: | ||
- Tax on excess pension contributions | ||
fixed: | ||
- Include Scottish income tax calculation within overall UK income tax calculation | ||
- Apply allowances to all types of income | ||
- Prevent negative income tax output | ||
- Update Dividend Allowance values | ||
- Correct Starter Rate for Savings taper structure | ||
- Prevent calculation errors due to empty extra dividend bracket with conflicting rates |
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
9 changes: 7 additions & 2 deletions
9
policyengine_uk/parameters/gov/hmrc/income_tax/allowances/dividend_allowance.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,9 +1,14 @@ | ||
description: Amount of dividend income untaxed per year | ||
values: | ||
2015-06-05: 2_000 | ||
2016-04-06: 5_000 | ||
2018-04-06: 2_000 | ||
2023-04-06: 1_000 | ||
2024-04-06: 500 | ||
metadata: | ||
name: dividend_allowance | ||
label: Dividend Allowance | ||
period: year | ||
unit: currency-GBP | ||
reference: https://www.gov.uk/government/publications/rates-and-allowances-income-tax/income-tax-rates-and-allowances-current-and-past | ||
reference: | ||
- title: Tax on dividends | ||
href: https://www.gov.uk/tax-on-dividends |
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
11 changes: 11 additions & 0 deletions
11
policyengine_uk/parameters/gov/hmrc/income_tax/income_tax_additions.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,11 @@ | ||
description: All variables that are added together to calculate total income tax | ||
metadata: | ||
label: Additive components of total income tax | ||
unit: list | ||
values: | ||
0000-01-01: | ||
- earned_income_tax | ||
- savings_income_tax | ||
- dividend_income_tax | ||
- CB_HITC | ||
- private_pension_contributions_tax |
8 changes: 8 additions & 0 deletions
8
policyengine_uk/parameters/gov/hmrc/income_tax/income_tax_subtractions.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,8 @@ | ||
description: All variables that are subtracted from the base amount to calculate total income tax | ||
metadata: | ||
label: Subtractive components of total income tax | ||
unit: list | ||
values: | ||
0000-01-01: | ||
- capped_mcad | ||
- other_tax_credits |
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
9 changes: 9 additions & 0 deletions
9
policyengine_uk/parameters/gov/hmrc/income_tax/rates/savings_starter_rate/phase_out.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,9 @@ | ||
description: Starter Rate for Savings phase-out rate | ||
values: | ||
2014-04-06: 1 | ||
metadata: | ||
unit: currency_GBP | ||
description: Rate, above the max Personal Allowance, at which Starter Rate for Savings total amount phases out, for each additional pound of non-savings income | ||
reference: | ||
- title: Tax on savings interest | ||
href: https://www.gov.uk/apply-tax-free-interest-on-savings |
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
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
44 changes: 44 additions & 0 deletions
44
...cyengine_uk/tests/policy/baseline/finance/tax/income_tax/savings_starter_rate_income.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,44 @@ | ||
- name: Full savings starter rate allowance | ||
period: 2024 | ||
input: | ||
basic_rate_savings_income_pre_starter: 5_000 | ||
earned_taxable_income: 15_000 | ||
taxable_dividend_income: 0 | ||
output: | ||
savings_starter_rate_income: 5_000 | ||
|
||
- name: Partial savings starter rate allowance | ||
period: 2024 | ||
input: | ||
basic_rate_savings_income_pre_starter: 4_000 | ||
earned_taxable_income: 19_000 | ||
taxable_dividend_income: 0 | ||
output: | ||
savings_starter_rate_income: 3_570 | ||
|
||
- name: No savings starter rate allowance due to high non-savings income | ||
period: 2024 | ||
input: | ||
basic_rate_savings_income_pre_starter: 2_000 | ||
earned_taxable_income: 22_000 | ||
taxable_dividend_income: 1_000 | ||
output: | ||
savings_starter_rate_income: 0 | ||
|
||
- name: Savings income exceeds allowance | ||
period: 2024 | ||
input: | ||
basic_rate_savings_income_pre_starter: 10_000 | ||
earned_taxable_income: 16_000 | ||
taxable_dividend_income: 0 | ||
output: | ||
savings_starter_rate_income: 5_000 | ||
|
||
- name: Partial allowance with dividend income | ||
period: 2024 | ||
input: | ||
basic_rate_savings_income_pre_starter: 5_000 | ||
earned_taxable_income: 16_000 | ||
taxable_dividend_income: 2_000 | ||
output: | ||
savings_starter_rate_income: 4_570 |
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
44 changes: 44 additions & 0 deletions
44
...licy/baseline/gov/hmrc/income_tax/allowances/received_allowances/received_allowances.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,44 @@ | ||
- name: Received allowances with low income | ||
period: 2024 | ||
input: | ||
received_allowances_earned_income: 8_000 | ||
received_allowances_savings_income: 1_000 | ||
received_allowances_dividend_income: 500 | ||
output: | ||
received_allowances: 9_500 | ||
|
||
- name: Received allowances with medium income | ||
period: 2024 | ||
input: | ||
received_allowances_earned_income: 25_000 | ||
received_allowances_savings_income: 3_000 | ||
received_allowances_dividend_income: 2_000 | ||
output: | ||
received_allowances: 30_000 | ||
|
||
- name: Received allowances with high income | ||
period: 2024 | ||
input: | ||
received_allowances_earned_income: 80_000 | ||
received_allowances_savings_income: 10_000 | ||
received_allowances_dividend_income: 5_000 | ||
output: | ||
received_allowances: 95_000 | ||
|
||
- name: Received allowances with uneven amounts | ||
period: 2024 | ||
input: | ||
received_allowances_earned_income: 42_567.50 | ||
received_allowances_savings_income: 3_789.25 | ||
received_allowances_dividend_income: 1_234.75 | ||
output: | ||
received_allowances: 47_591.50 | ||
|
||
- name: Received allowances with zero savings and dividend income | ||
period: 2024 | ||
input: | ||
received_allowances_earned_income: 50_000 | ||
received_allowances_savings_income: 0 | ||
received_allowances_dividend_income: 0 | ||
output: | ||
received_allowances: 50_000 |
59 changes: 59 additions & 0 deletions
59
...v/hmrc/income_tax/allowances/received_allowances/received_allowances_dividend_income.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,59 @@ | ||
- name: Dividend income less than remaining allowance | ||
period: 2024 | ||
input: | ||
allowances: 12_570 | ||
received_allowances_earned_income: 8_000 | ||
received_allowances_savings_income: 2_000 | ||
taxable_dividend_income: 2_000 | ||
output: | ||
received_allowances_dividend_income: 2_000 | ||
|
||
- name: Dividend income equal to remaining allowance | ||
period: 2024 | ||
input: | ||
allowances: 12_570 | ||
received_allowances_earned_income: 10_000 | ||
received_allowances_savings_income: 570 | ||
taxable_dividend_income: 2_000 | ||
output: | ||
received_allowances_dividend_income: 2_000 | ||
|
||
- name: Dividend income greater than remaining allowance | ||
period: 2024 | ||
input: | ||
allowances: 12_570 | ||
received_allowances_earned_income: 11_000 | ||
received_allowances_savings_income: 1_000 | ||
taxable_dividend_income: 1_000 | ||
output: | ||
received_allowances_dividend_income: 570 | ||
|
||
- name: No remaining allowance | ||
period: 2024 | ||
input: | ||
allowances: 12_570 | ||
received_allowances_earned_income: 10_570 | ||
received_allowances_savings_income: 2_000 | ||
taxable_dividend_income: 1_000 | ||
output: | ||
received_allowances_dividend_income: 0 | ||
|
||
- name: Negative taxable dividend income | ||
period: 2024 | ||
input: | ||
allowances: 12_570 | ||
received_allowances_earned_income: 10_000 | ||
received_allowances_savings_income: 1_000 | ||
taxable_dividend_income: -500 | ||
output: | ||
received_allowances_dividend_income: 0 | ||
|
||
- name: Negative remaining allowance | ||
period: 2024 | ||
input: | ||
allowances: 12_570 | ||
received_allowances_earned_income: 11_000 | ||
received_allowances_savings_income: 2_000 | ||
taxable_dividend_income: 1_000 | ||
output: | ||
received_allowances_dividend_income: 0 |
Oops, something went wrong.