-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Flat tax on gross income Fixes #4830 * add positive gross income and neew param * remove gross income bool --------- Co-authored-by: Max Ghenis <mghenis@gmail.com>
- Loading branch information
1 parent
d2bc10a
commit aa41264
Showing
7 changed files
with
55 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- bump: minor | ||
changes: | ||
added: | ||
- Flat tax on gross income. |
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
policyengine_us/parameters/gov/contrib/ubi_center/flat_tax/rate/gross_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,7 @@ | ||
description: Flat tax rate applied to federal gross income. | ||
values: | ||
2010-01-01: 0 | ||
metadata: | ||
label: Flat tax rate on gross income | ||
unit: /1 | ||
period: year |
13 changes: 13 additions & 0 deletions
13
...y/baseline/gov/irs/income/taxable_income/adjusted_gross_income/positive_gross_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,13 @@ | ||
- name: Positive gross income | ||
period: 2022 | ||
input: | ||
irs_gross_income: 1_000 | ||
output: | ||
positive_gross_income: 1_000 | ||
|
||
- name: Negative gross income | ||
period: 2022 | ||
input: | ||
irs_gross_income: -1_000 | ||
output: | ||
positive_gross_income: 0 |
9 changes: 9 additions & 0 deletions
9
policyengine_us/tests/policy/contrib/ubi_center/flat_tax.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 @@ | ||
- name: 10% flat tax on AGI and 20% flat tax on gross income | ||
period: 2023 | ||
input: | ||
gov.contrib.ubi_center.flat_tax.rate.agi: 0.1 | ||
gov.contrib.ubi_center.flat_tax.rate.gross_income: 0.2 | ||
positive_agi: 2_000 | ||
positive_gross_income: 5_000 | ||
output: | ||
flat_tax: 1_200 |
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
14 changes: 14 additions & 0 deletions
14
...us/variables/gov/irs/income/taxable_income/adjusted_gross_income/positive_gross_income.py
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,14 @@ | ||
from policyengine_us.model_api import * | ||
|
||
|
||
class positive_gross_income(Variable): | ||
value_type = float | ||
entity = TaxUnit | ||
label = "Positive Gross Income" | ||
unit = USD | ||
documentation = "Negative gross income values capped at zero" | ||
definition_period = YEAR | ||
|
||
def formula(tax_unit, period, parameters): | ||
gross_income = add(tax_unit, period, ["irs_gross_income"]) | ||
return max_(gross_income, 0) |