-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish elimination of taxcalc-related variables (#3226)
* Remove unused tax_unit_net_capital_gains alias for c01000 * Rename c23650 variable to net_capital_gains * Relocate net_capital_gains variable * Rename c01000 variable to loss_limited_net_capital_gains * Move tax_unit_is_joint variable to own module * Relocate loss_limited_net_capital_gains.py module * Add capital_gains/loss_limit.yaml parameter and use it in formula * Relocate/rename hasqdivltcg variable as has_qdiv_or_ltcg * Remove taxcalc variable sep * Rename k1bx14 to s_corp_self_employment_income * Add adjusted_earnings variable (formerly earned) * Add filer_adjusted_earnings variable (formerly filer_earned) * Use new (filer_)adjusted_earnings variables in formulas and tests * Add changelog entry * Eliminate use of dsi alias variables * Move IL unit tests to more consistent directory location * Update changelog_entry.yaml --------- Co-authored-by: Max Ghenis <[email protected]>
- Loading branch information
1 parent
2520ab6
commit 582af67
Showing
82 changed files
with
370 additions
and
403 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,10 @@ | ||
- bump: minor | ||
changes: | ||
added: | ||
- The `net_capital_gains` variable (formerly `c23650`). | ||
- The `gov/irs/capital_gains/loss_limit.yaml` parameter file. | ||
- The `loss_limited_net_capital_gains` variable (formerly `c01000`) that uses the `loss_limit` parameter. | ||
removed: | ||
- Formula code that avoids `sep` variable that had no formula, and therefore, was likely to cause bugs. | ||
changed: | ||
- Rename taxcalc variables to be consistent with this project's coding style and to be in more sensible directory locations. |
16 changes: 16 additions & 0 deletions
16
policyengine_us/parameters/gov/irs/capital_gains/loss_limit.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,16 @@ | ||
description: Capital gains loss limit | ||
metadata: | ||
unit: currency-USD | ||
reference: | ||
- title: IRS Topic No. 409, Capital Gains and Losses | ||
href: https://www.irs.gov/taxtopics/tc409 | ||
HEAD_OF_HOUSEHOLD: | ||
2013-01-01: 3_000 | ||
JOINT: | ||
2013-01-01: 3_000 | ||
SEPARATE: | ||
2013-01-01: 1_500 | ||
SINGLE: | ||
2013-01-01: 3_000 | ||
WIDOW: | ||
2013-01-01: 3_000 |
2 changes: 1 addition & 1 deletion
2
policyengine_us/parameters/gov/irs/income/exemption/phase_out/step_size.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
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
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
period: 2018 | ||
input: | ||
is_tax_unit_head: true | ||
earned: 1 | ||
adjusted_earnings: 1 | ||
output: | ||
head_earned: 1 |
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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.