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

Switch to use of new Python-generated puf.csv file #1429

Merged
merged 9 commits into from
Jun 14, 2017
21 changes: 17 additions & 4 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,21 @@ Release 0.9.0 on 2017-??-??
[[#1427](https://github.com/open-source-economics/Tax-Calculator/pull/1427)
by William Ensor]

- Add repeal personal exemptions for dependents under age 18 reform option
[[#1428](https://github.com/open-source-economics/Tax-Calculator/pull/1428)
by Hank Doupe]

- Switch to use of new improved puf.csv input file, which causes small
changes in tax results
[[#1429](https://github.com/open-source-economics/Tax-Calculator/pull/1429)
by Martin Holmer]

**Bug Fixes**
- None

- Fix logic of gross casualty loss calculation by moving it out of
Tax-Calculator and into the taxdata repository
[[#1426](https://github.com/open-source-economics/Tax-Calculator/pull/1426)
by Martin Holmer]

Release 0.8.5 on 2017-06-08
---------------------------
Expand All @@ -38,9 +51,9 @@ Release 0.8.5 on 2017-06-08
[[#1375](https://github.com/open-source-economics/Tax-Calculator/pull/1375)
by Anderson Frailey]
- Add policy reform file for the Renacci reform
[[#1376](https://github.com/open-source-economics/Tax-Calculator/pull/1376)
, [#1383](https://github.com/open-source-economics/Tax-Calculator/pull/1383)
, and
[[#1376](https://github.com/open-source-economics/Tax-Calculator/pull/1376),
[#1383](https://github.com/open-source-economics/Tax-Calculator/pull/1383)
and
[#1385](https://github.com/open-source-economics/Tax-Calculator/pull/1385)
by Hank Doupe]
- Add separate ceiling for each itemized deduction parameter
Expand Down
12 changes: 6 additions & 6 deletions docs/index.html

Large diffs are not rendered by default.

66 changes: 33 additions & 33 deletions taxcalc/comparison/reform_results.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
PAYROLL TAXES
""
Increase the Social Security payroll tax rate by 1pts
Tax-Calculator,62.1,64.5,68.0,70.8
Tax-Calculator,62.0,64.3,67.7,70.5
""
Increase the maximum taxable earnings (177500) for the social security payroll tax
Tax-Calculator,54.9,64.3,60.0,62.0
Tax-Calculator,51.2,60.2,56.4,58.4
Budget Options,40,46,49,51
""
Increase the payroll tax rate for Medicare (HI) by 1pts
Expand All @@ -21,25 +21,25 @@ Tax-Calculator,0.8,0.9,1.0,1.1
SOCIAL SECURITY TAXABILITY
""
Exclusion of untaxed social security and railroad retirement
Tax-Calculator,38.4,39.6,41.3,43.4
Tax-Calculator,38.7,39.9,41.4,43.6
Tax Expenditure,39,42,44,47
Budget Options,35,37,38,40
""
ADJUSTMENTS
""
Net exclusion of KEOGH plan
Tax-Calculator,7.1,7.3,7.6,8.0
Tax-Calculator,7.5,7.8,8.1,8.4
Tax Expenditure,9,10,11,16
""
Deduction for student loans
Tax-Calculator,1.7,1.8,1.9,2.0
Tax Expenditure,2,2,2,2
""
Eliminate adjustment for self-employment tax
Tax-Calculator,4.1,4.3,4.7,5.0
Tax-Calculator,4.2,4.3,4.7,5.0
""
Eliminate adjustment for self-employed health insurance
Tax-Calculator,5.7,5.9,6.1,6.4
Tax-Calculator,6.0,6.1,6.3,6.4
""
Eliminate adjustment for alimony payments
Tax-Calculator,2.1,2.2,2.3,2.4
Expand All @@ -50,7 +50,7 @@ Tax-Calculator,0.1,0.1,0.1,0.1
EXEMPTION
""
Increase personal and dependent exemption amount by 1000
Tax-Calculator,-32.3,-34.5,-39.2,-40.7
Tax-Calculator,-32.4,-34.5,-39.1,-40.6
""
Increase personal exemption phaseout starting AGI by 10,000
Tax-Calculator,-0.1,-0.1,-0.1,-0.2
Expand All @@ -69,31 +69,31 @@ Tax-Calculator,-0.2,-0.3,-0.4,-0.5
ITEMIZED DEDUCTION
""
Real Estate
Tax-Calculator,36.0,38.1,40.1,42.1
Tax-Calculator,36.0,38.1,40.0,41.9
Tax Expenditure,34,36,39,41
""
Home Mortgage
Tax-Calculator,69.4,74.7,79.8,84.6
Tax-Calculator,69.6,74.9,80.1,84.7
Tax Expenditure,75,82,88,93
""
Both real estate and state and local
Tax-Calculator,101.6,107.6,113.2,118.6
Tax-Calculator,101.2,107.2,113.0,118.5
Tax Expenditure,75,82,88,93
""
State & Local
Tax-Calculator,67.3,70.9,74.3,77.4
Tax-Calculator,66.9,70.3,73.9,77.4
Tax Expenditure,59,63,67,71
""
Medical
Tax-Calculator,8.0,8.4,7.8,8.0
Tax-Calculator,8.2,8.6,7.9,8.1
Tax Expenditure,11,12,13,14
""
Casualty
Tax-Calculator,0.5,0.5,0.5,0.6
Tax-Calculator,0.5,0.5,0.5,0.5
Tax Expenditure,0,0,0,0
""
Charitable
Tax-Calculator,46.7,49.3,51.8,54.1
Tax-Calculator,46.8,49.5,52.0,54.3
Tax Expenditure,46,47,48,50
""
Decrease AGI floor for miscellaneous expenses by 1 pts
Expand All @@ -106,79 +106,79 @@ Increase Itemized Deduction phaseout starting AGI by 10,000
Tax-Calculator,0.1,0.1,0.0,0.0
""
Increase Itemized Deduction phaseout rate by 1 pts
Tax-Calculator,4.4,4.6,4.8,4.9
Tax-Calculator,4.3,4.5,4.7,4.9
""
limit the tax value of ID to 6% of AGI
Tax-Calculator,19.9,20.8,21.9,22.9
Tax-Calculator,20.0,21.0,22.1,23.1
Budget Options,11,9,8,7
""
CAPITAL GAIN
""
Increase long term cap gain and dividends tax rates by 2 percentage, no behavioral response
Tax-Calculator,18.5,19.9,20.2,20.4
Tax-Calculator,18.4,19.9,20.2,20.4
""
Increase long term cap gain and dividends tax rates by 2 percentage, BE_cg elasticity assumed to be -3.67
Tax-Calculator,4.3,4.4,4.6,4.7
Tax-Calculator,4.3,4.5,4.6,4.7
Budget Options,5,5,5,6
""
REGULAR TAXES
""
Increase each bracket rate by 1%
Tax-Calculator,58.8,61.3,64.1,66.5
Tax-Calculator,58.8,61.3,64.0,66.5
Budget Options,56,60,65,69
""
Increase top 4 rates by 1%
Tax-Calculator,14.3,14.9,15.4,15.7
Tax-Calculator,14.2,14.7,15.3,15.8
Budget Options,11,12,14,15
""
Increase top 2 rates by 1%
Tax-Calculator,9.4,9.7,9.9,10.0
Tax-Calculator,9.2,9.5,9.8,10.0
Budget Options,7,8,9,10
""
Alternative Minimum Tax
""
Increase exemption amount by 1000
Tax-Calculator,-1.1,-2.4,-3.8,-4.0
Tax-Calculator,-1.1,-2.4,-3.9,-4.1
""
Alternative Minimum Tax
""
Increase exemption phaseout starting AMTI by 10,000
Tax-Calculator,-2.5,-3.2,-4.0,-4.2
Tax-Calculator,-2.6,-3.3,-4.2,-4.3
""
Alternative Minimum Tax
""
Increase exemption phaseout rate by 2 pts
Tax-Calculator,2.7,2.9,3.1,3.2
Tax-Calculator,2.7,3.0,3.1,3.3
""
Alternative Minimum Tax
""
Increase AMT rate under the surtax threshold by 2 pts
Tax-Calculator,27.9,29.8,31.4,33.0
Tax-Calculator,28.4,30.4,32.2,33.6
""
Alternative Minimum Tax
""
Increase AMT rate above the surtax threshold by 2 pts
Tax-Calculator,9.1,9.6,10.2,10.7
Tax-Calculator,9.2,9.8,10.4,10.8
""
Increase AMT surtax threshold by 10,000
Tax-Calculator,-0.5,-0.7,-0.9,-0.9
""
NONREFUNDABLE CREDIT
""
Total expenditure from child tax credit
Tax-Calculator,50.9,50.3,49.7,49.2
Tax-Calculator,51.2,50.6,50.0,49.4
Tax Expenditure,57,57,57,57
""
Increase Child Tax Credit phaseout rate by 1 pts
Tax-Calculator,0.5,0.5,0.6,0.6
Tax-Calculator,0.5,0.5,0.5,0.6
""
Increase Child Tax Credit phaseout starting MAGI by 1000
Tax-Calculator,-0.2,-0.2,-0.2,-0.2
""
REFUNDABLE CREDIT
""
Earned income tax credit, total
Tax-Calculator,65.5,64.8,64.7,66.3
Tax-Calculator,65.7,65.0,64.9,66.3
Tax Expenditure,70,71,72,70
""
Increase EITC phaseout rate by 1 pts
Expand All @@ -199,7 +199,7 @@ Tax-Calculator,0.0,0.0,0.0,0.0
OTHER TAXES
""
Eliminate Net Investment Income Tax
Tax-Calculator,-37.1,-40.1,-40.6,-40.9
Tax-Calculator,-36.8,-39.8,-40.4,-41.1
Tax Expenditure,-33,-35,-37,-39
""
Increase Net Investment Income Tax threshold by 10,000
Expand All @@ -208,13 +208,13 @@ Tax-Calculator,-0.4,-0.4,-0.4,-0.4
PERSONAL REFUNDABLE CREDIT
""
Increase Personal Refundable credit amount to 1000
Tax-Calculator,-164.9,-170.6,-177.5,-184.4
Tax-Calculator,156.2,159.8,164.5,170.3
""
Increase Personal Refundable credit amount to 1000 with phaseout starting at AGI 10,000 and phaseout rate at 0.01
Tax-Calculator,-109.3,-112.6,-116.8,-121.2
Tax-Calculator,145.1,148.7,153.5,159.0
""
FAIR SHARE TAX
""
Increase FST rate from zero to 0.30 beginning in 2017
Tax-Calculator,41.7,41.6,41.5,41.9
Tax-Calculator,41.5,41.9,42.0,42.8
Tax Foundation: 321 ten-year(2016-25) static estimate
4 changes: 2 additions & 2 deletions taxcalc/current_law_policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -1023,11 +1023,11 @@

"_ID_Casualty_frt": {
"long_name": "Deduction for casualty loss; floor as a decimal fraction of AGI",
"description": "Taxpayers are eligible to deduct the portion of their casualty loss exceeding this fraction of AGI.",
"description": "Taxpayers are eligible to deduct the portion of their gross casualty losses exceeding this fraction of AGI.",
"section_1": "Itemized Deductions",
"section_2": "Casualty",
"irs_ref": "Form 4684, line 17, in-line.",
"notes": "This rate cannot be decreased to lower than 0.1 due to lack of data. ",
"notes": "This rate cannot be decreased to lower than 0.10 due to lack of data. ",
"row_var": "FLPDYR",
"row_label": ["2013"],
"start_year": 2013,
Expand Down
12 changes: 3 additions & 9 deletions taxcalc/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,11 @@ def AGI(ymod1, c02500, c02900, XTOT, MARS, sep, DSI, exact,

@iterate_jit(nopython=True)
def ItemDed(e17500, e18400, e18500,
e20500, e20400, e19200, e19800, e20100,
g20500, e20400, e19200, e19800, e20100,
MARS, age_head, age_spouse,
c00100, c04470, c17000, c18300, c20500, c19200,
c20800, c21040, c21060, c19700,
ID_ps, ID_Medical_frt, ID_Medical_frt_add4aged, ID_Medical_hc,
ID_Casualty_frt_in_pufcsv_year,
ID_Casualty_frt, ID_Casualty_hc, ID_Miscellaneous_frt,
ID_Miscellaneous_hc, ID_Charity_crt_all, ID_Charity_crt_noncash,
ID_prt, ID_crt, ID_c, ID_StateLocalTax_hc, ID_Charity_frt,
Expand Down Expand Up @@ -423,7 +422,7 @@ def ItemDed(e17500, e18400, e18500,

e20400 : Total miscellaneous expenses

e20500 : Net [of disregard] casualty or theft loss
g20500 : Gross casualty or theft loss (before disregard)

Returns
-------
Expand Down Expand Up @@ -453,12 +452,7 @@ def ItemDed(e17500, e18400, e18500,
c19700 = max(0., c19700 - charity_floor) * (1. - ID_Charity_hc)
c19700 = min(c19700, ID_Charity_c[MARS - 1])
# Casualty
if e20500 > 0.0: # add back to e20500 the PUFCSV_YEAR disregard amount
c37703 = e20500 + ID_Casualty_frt_in_pufcsv_year * posagi
else: # small pre-disregard e20500 values are assumed to be zero
c37703 = 0.
c20500 = (max(0., c37703 - ID_Casualty_frt * posagi) *
(1. - ID_Casualty_hc))
c20500 = max(0., g20500 - ID_Casualty_frt * posagi) * (1. - ID_Casualty_hc)
c20500 = min(c20500, ID_Casualty_c[MARS - 1])
# Miscellaneous
c20400 = e20400
Expand Down
2 changes: 1 addition & 1 deletion taxcalc/growdiff.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@

"_ATXPY": {
"long_name": "ATXPY additive difference from default projection",
"description": "Default projection is in growfactors.csv file. ATXPY extrapolates input variables: e00700, e00800, e01400, e01500, e01700, e03150, e03210, e03220, e03230, e03300, e03400, e03500, e07240, e07260, p08000, e09700, e09800, e09900, e11200, e18400, e18500, e19800, e20100, e20400, e20500, e07600, e32800, e58990, e62900, e87530, p87521 and cmbtp.",
"description": "Default projection is in growfactors.csv file. ATXPY extrapolates input variables: e00700, e00800, e01400, e01500, e01700, e03150, e03210, e03220, e03230, e03300, e03400, e03500, e07240, e07260, p08000, e09700, e09800, e09900, e11200, e18400, e18500, e19800, e20100, e20400, g20500, e07600, e32800, e58990, e62900, e87530, p87521 and cmbtp.",
"section_1": "",
"section_2": "",
"notes": "",
Expand Down
Loading