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

Reinstate surtax in diagnostic table #2128

Merged
merged 1 commit into from
Nov 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions taxcalc/tests/cpscsv_agg_expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ AMT Filers (#m) 3.0 3.8 4.0 4.3 4.5
Tax before Credits ($b) 1120.4 1313.1 1348.5 1423.1 1507.5 1584.4 1659.1 1739.9 1825.4 1913.3
Refundable Credits ($b) 67.2 68.4 67.3 65.8 66.5 67.5 68.6 69.8 71.0 71.9
Nonrefundable Credits ($b) 26.7 27.0 27.2 27.6 27.5 27.3 27.0 26.8 26.4 26.1
Reform Surtaxes ($b) 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
Other Taxes ($b) 6.7 7.8 7.8 8.0 8.5 9.1 9.6 10.2 10.8 11.4
Ind Income Tax ($b) 1033.2 1225.6 1261.8 1337.7 1422.1 1498.7 1573.0 1653.5 1738.8 1826.6
Payroll Taxes ($b) 933.0 1069.6 1107.9 1165.7 1220.5 1270.4 1316.6 1365.6 1418.8 1475.0
Expand Down
1 change: 1 addition & 0 deletions taxcalc/tests/pufcsv_agg_expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ AMT Filers (#m) 4.6 4.9 5.2 5.5 5.7
Tax before Credits ($b) 1341.2 1501.0 1622.5 1667.4 1765.3 1840.3 1904.8 1971.0 2045.4 2129.8
Refundable Credits ($b) 105.5 104.0 104.2 103.7 103.5 105.3 107.3 109.3 111.5 113.7
Nonrefundable Credits ($b) 67.0 67.0 67.4 67.6 68.2 68.3 68.5 68.8 69.3 70.0
Reform Surtaxes ($b) 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
Other Taxes ($b) 26.2 33.9 41.4 38.7 42.0 43.8 44.5 46.1 47.9 49.9
Ind Income Tax ($b) 1194.9 1363.9 1492.2 1534.7 1635.6 1710.5 1773.5 1839.0 1912.5 1996.0
Payroll Taxes ($b) 947.8 982.0 1026.6 1064.6 1120.5 1170.5 1216.7 1259.9 1305.5 1355.6
Expand Down
7 changes: 5 additions & 2 deletions taxcalc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

DIST_VARIABLES = ['expanded_income', 'c00100', 'aftertax_income', 'standard',
'c04470', 'c04600', 'c04800', 'taxbc', 'c62100', 'c09600',
'c05800', 'othertaxes', 'refund', 'c07100',
'c05800', 'surtax', 'othertaxes', 'refund', 'c07100',
'iitax', 'payrolltax', 'combined', 's006', 'ubi',
'benefit_cost_total', 'benefit_value_total']

Expand Down Expand Up @@ -595,7 +595,7 @@ def diagnostic_table_odict(vdf):
val = wghts[vdf['standard'] > 0.].sum()
odict['Standard Deduction Filers (#m)'] = round(val * in_millions, 2)
# standard deduction
sded1 = vdf.standard * wghts
sded1 = vdf['standard'] * wghts
val = sded1[vdf['standard'] > 0.].sum()
odict['Standard Deduction ($b)'] = round(val * in_billions, 3)
# personal exemption
Expand Down Expand Up @@ -625,6 +625,9 @@ def diagnostic_table_odict(vdf):
# nonrefundable credits
val = (vdf['c07100'] * wghts).sum()
odict['Nonrefundable Credits ($b)'] = round(val * in_billions, 3)
# reform surtaxes (part of federal individual income tax liability)
val = (vdf['surtax'] * wghts).sum()
odict['Reform Surtaxes ($b)'] = round(val * in_billions, 3)
# other taxes on Form 1040
val = (vdf['othertaxes'] * wghts).sum()
odict['Other Taxes ($b)'] = round(val * in_billions, 3)
Expand Down