taxcalc 4.3.3__py3-none-any.whl → 4.3.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. taxcalc/__init__.py +1 -1
  2. taxcalc/calcfunctions.py +18 -21
  3. taxcalc/records_variables.json +5 -6
  4. taxcalc/reforms/2017_law.out.csv +1 -1
  5. taxcalc/reforms/ARPA.out.csv +10 -10
  6. taxcalc/reforms/BrownKhanna.out.csv +1 -1
  7. taxcalc/reforms/CARES.out.csv +10 -10
  8. taxcalc/reforms/ConsolidatedAppropriationsAct2021.out.csv +1 -1
  9. taxcalc/reforms/Larson2019.out.csv +10 -10
  10. taxcalc/reforms/Renacci.out.csv +1 -1
  11. taxcalc/reforms/SandersDeFazio.out.csv +10 -10
  12. taxcalc/reforms/TCJA.out.csv +1 -1
  13. taxcalc/reforms/Trump2016.out.csv +1 -1
  14. taxcalc/reforms/Trump2017.out.csv +1 -1
  15. taxcalc/reforms/clp.out.csv +10 -10
  16. taxcalc/reforms/ext.json +1 -1
  17. taxcalc/reforms/ptaxes0.out.csv +1 -1
  18. taxcalc/reforms/ptaxes1.out.csv +1 -1
  19. taxcalc/reforms/ptaxes2.out.csv +1 -1
  20. taxcalc/reforms/ptaxes3.out.csv +1 -1
  21. taxcalc/taxcalcio.py +6 -4
  22. taxcalc/tests/cmpi_cps_expect.txt +20 -20
  23. taxcalc/tests/cmpi_puf_expect.txt +20 -20
  24. taxcalc/tests/cpscsv_agg_expect.csv +4 -4
  25. taxcalc/tests/puf_var_correl_coeffs_2016.csv +39 -39
  26. taxcalc/tests/puf_var_wght_means_by_year.csv +2 -2
  27. taxcalc/tests/pufcsv_agg_expect.csv +4 -4
  28. taxcalc/tests/pufcsv_mtr_expect.txt +8 -8
  29. taxcalc/tests/reforms_expect.csv +7 -7
  30. taxcalc/tests/test_calcfunctions.py +11 -10
  31. taxcalc/tests/test_pufcsv.py +1 -3
  32. taxcalc/tests/test_utils.py +24 -24
  33. {taxcalc-4.3.3.dist-info → taxcalc-4.3.4.dist-info}/METADATA +2 -2
  34. {taxcalc-4.3.3.dist-info → taxcalc-4.3.4.dist-info}/RECORD +38 -38
  35. {taxcalc-4.3.3.dist-info → taxcalc-4.3.4.dist-info}/WHEEL +1 -1
  36. {taxcalc-4.3.3.dist-info → taxcalc-4.3.4.dist-info}/LICENSE +0 -0
  37. {taxcalc-4.3.3.dist-info → taxcalc-4.3.4.dist-info}/entry_points.txt +0 -0
  38. {taxcalc-4.3.3.dist-info → taxcalc-4.3.4.dist-info}/top_level.txt +0 -0
taxcalc/__init__.py CHANGED
@@ -14,6 +14,6 @@ from taxcalc.taxcalcio import *
14
14
  from taxcalc.utils import *
15
15
  from taxcalc.cli import *
16
16
 
17
- __version__ = '4.3.3'
17
+ __version__ = '4.3.4'
18
18
  __min_python3_version__ = 10
19
19
  __max_python3_version__ = 12
taxcalc/calcfunctions.py CHANGED
@@ -157,11 +157,11 @@ def EI_PayrollTax(SS_Earnings_c, e00200p, e00200s, pencon_p, pencon_s,
157
157
  Partner self-employment earnings/loss for spouse (included in e26270 total)
158
158
  payrolltax: float
159
159
  Total (employee and employer) payroll tax liability
160
- payrolltax = ptax_was + setax + ptax_amc
160
+ payrolltax = ptax_was
161
161
  ptax_was: float
162
162
  Employee and employer OASDI plus HI FICA tax
163
163
  setax: float
164
- Self-employment tax
164
+ Self-employment tax (included in othertaxes and iitax)
165
165
  c03260: float
166
166
  Deductible part of self-employment tax
167
167
  c03260 = (1 - ALD_SelfEmploymentTax_hc) * 0.5 * setax
@@ -187,11 +187,11 @@ def EI_PayrollTax(SS_Earnings_c, e00200p, e00200s, pencon_p, pencon_s,
187
187
  Total self-employment income for filing unit
188
188
  payrolltax: float
189
189
  Total (employee and employer) payroll tax liability
190
- payrolltax = ptax_was + setax + ptax_amc
190
+ payrolltax = ptax_was
191
191
  ptax_was: float
192
192
  Employee and employer OASDI plus HI FICA tax
193
193
  setax: float
194
- Self-employment tax
194
+ Self-employment tax (included in othertaxes and iitax)
195
195
  c03260: float
196
196
  Deductible part of self-employment tax
197
197
  c03260 = (1 - ALD_SelfEmploymentTax_hc) * 0.5 * setax
@@ -260,9 +260,7 @@ def EI_PayrollTax(SS_Earnings_c, e00200p, e00200s, pencon_p, pencon_s,
260
260
  extra_ss_income_s * (FICA_ss_trt_employer + FICA_ss_trt_employee))
261
261
 
262
262
  # compute part of total payroll taxes for filing unit
263
- # (the ptax_amc part of total payroll taxes for the filing unit is
264
- # computed in the AdditionalMedicareTax function below)
265
- payrolltax = ptax_was + setax + extra_payrolltax
263
+ payrolltax = ptax_was + extra_payrolltax
266
264
 
267
265
  # compute OASDI part of payroll taxes
268
266
  ptax_oasdi = (ptax_ss_was_p + ptax_ss_was_s +
@@ -1088,9 +1086,9 @@ def AdditionalMedicareTax(e00200, MARS,
1088
1086
  AMEDT_ec, sey, AMEDT_rt,
1089
1087
  FICA_mc_trt_employer, FICA_mc_trt_employee,
1090
1088
  FICA_ss_trt_employer, FICA_ss_trt_employee,
1091
- ptax_amc, payrolltax):
1089
+ ptax_amc):
1092
1090
  """
1093
- Computes Additional Medicare Tax (Form 8959) included in payroll taxes.
1091
+ Computes Additional Medicare Tax (Form 8959) included in othertaxes.
1094
1092
 
1095
1093
  Parameters
1096
1094
  -----
@@ -1113,23 +1111,18 @@ def AdditionalMedicareTax(e00200, MARS,
1113
1111
  sey: float
1114
1112
  Self-employment income
1115
1113
  ptax_amc: float
1116
- Additional Medicare Tax
1117
- payrolltax: float
1118
- payroll tax augmented by Additional Medicare Tax
1114
+ Additional Medicare Tax (included in othertaxes and iitax)
1119
1115
 
1120
1116
  Returns
1121
1117
  -------
1122
1118
  ptax_amc: float
1123
- Additional Medicare Tax
1124
- payrolltax: float
1125
- payroll tax augmented by Additional Medicare Tax
1119
+ Additional Medicare Tax (included in othertaxes and iitax)
1126
1120
  """
1127
1121
  line8 = max(0., sey) * (1. - 0.5 * (FICA_mc_trt_employer + FICA_mc_trt_employee + FICA_ss_trt_employer + FICA_ss_trt_employee))
1128
1122
  line11 = max(0., AMEDT_ec[MARS - 1] - e00200)
1129
1123
  ptax_amc = AMEDT_rt * (max(0., e00200 - AMEDT_ec[MARS - 1]) +
1130
1124
  max(0., line8 - line11))
1131
- payrolltax += ptax_amc
1132
- return (ptax_amc, payrolltax)
1125
+ return ptax_amc
1133
1126
 
1134
1127
 
1135
1128
  @iterate_jit(nopython=True)
@@ -3150,8 +3143,8 @@ def AdditionalCTC(codtc_limited, ACTC_c, n24, earned, ACTC_Income_thd,
3150
3143
 
3151
3144
  @iterate_jit(nopython=True)
3152
3145
  def C1040(c05800, c07180, c07200, c07220, c07230, c07240, c07260, c07300,
3153
- c07400, c07600, c08000, e09700, e09800, e09900, niit, othertaxes,
3154
- c07100, c09200, odc, charity_credit,
3146
+ c07400, c07600, c08000, e09700, e09800, e09900, niit, setax,
3147
+ ptax_amc, othertaxes, c07100, c09200, odc, charity_credit,
3155
3148
  personal_nonrefundable_credit,
3156
3149
  CTC_is_refundable, ODC_is_refundable):
3157
3150
  """
@@ -3190,8 +3183,12 @@ def C1040(c05800, c07180, c07200, c07220, c07230, c07240, c07260, c07300,
3190
3183
  Penalty tax on qualified retirement plans
3191
3184
  niit: float
3192
3185
  Net Investment Income Tax from Form 8960
3186
+ setax: float
3187
+ Self-employment tax
3188
+ ptax_amc: float
3189
+ Additional Medicare tax
3193
3190
  othertaxes: float
3194
- Sum of niit, e09700, e09800, and e09900
3191
+ Sum of niit, setax, ptax_amc, e09700, e09800, and e09900
3195
3192
  c07100: float
3196
3193
  Total non-refundable credits used to reduce positive tax liability
3197
3194
  c09200: float
@@ -3221,7 +3218,7 @@ def C1040(c05800, c07180, c07200, c07220, c07230, c07240, c07260, c07300,
3221
3218
  # tax after credits (2016 Form 1040, line 56)
3222
3219
  tax_net_nonrefundable_credits = max(0., c05800 - c07100)
3223
3220
  # tax (including othertaxes) before refundable credits
3224
- othertaxes = e09700 + e09800 + e09900 + niit
3221
+ othertaxes = e09700 + e09800 + e09900 + niit + setax + ptax_amc
3225
3222
  c09200 = othertaxes + tax_net_nonrefundable_credits
3226
3223
  return (c07100, othertaxes, c09200)
3227
3224
 
@@ -736,9 +736,8 @@
736
736
  },
737
737
  "payrolltax": {
738
738
  "type": "float",
739
- "desc": "Total (employee + employer) payroll tax liability; appears as PAYTAX variable in tc CLI minimal output (payrolltax = ptax_was + setax + ptax_amc)",
740
- "form": {"2013-2013": "OASDI+HI FICA plus 1040 lines 56 and 60a",
741
- "2014-2016": "OASDI+HI FICA plus 1040 lines 57 and 62a"}
739
+ "desc": "Total (employee + employer) payroll tax liability; appears as PAYTAX variable in tc CLI minimal output (payrolltax = ptax_was)",
740
+ "form": {"2013-20??": "OASDI+HI FICA"}
742
741
  },
743
742
  "refund": {
744
743
  "type": "float",
@@ -1133,13 +1132,13 @@
1133
1132
  },
1134
1133
  "ptax_amc": {
1135
1134
  "type": "float",
1136
- "desc": "Additional Medicare Tax from Form 8959 (included in payrolltax)",
1135
+ "desc": "Additional Medicare Tax from Form 8959 (included in othertaxes and iitax)",
1137
1136
  "form": {"2013-2013": "1040 line 60a",
1138
1137
  "2014-2016": "1040 line 62a"}
1139
1138
  },
1140
1139
  "ptax_oasdi": {
1141
1140
  "type": "float",
1142
- "desc": "Employee + employer OASDI FICA tax plus self-employment tax (excludes HI FICA so positive ptax_oasdi is less than ptax_was plus setax)",
1141
+ "desc": "Employee + employer OASDI FICA tax plus self-employment tax",
1143
1142
  "form": {"2013-2013": "OASDI FICA plus 1040 line 56",
1144
1143
  "2014-2016": "OASDI FICA plus 1040 line 57"}
1145
1144
  },
@@ -1151,7 +1150,7 @@
1151
1150
  },
1152
1151
  "setax": {
1153
1152
  "type": "float",
1154
- "desc": "Self-employment tax",
1153
+ "desc": "Self-employment tax (included in othertaxes and iitax)",
1155
1154
  "form": {"2013-2013": "1040 line 56",
1156
1155
  "2014-2016": "1040 line 57"}
1157
1156
  },
@@ -1,7 +1,7 @@
1
1
  RECID,c00100,standard,c04800,iitax,payrolltax
2
2
  11,30000.00,6723.42,18988.43,554.60,4590.00
3
3
  12,60000.00,6723.42,48988.43,5935.27,9180.00
4
- 13,460000.00,6723.42,453276.58,132718.27,32754.80
4
+ 13,460000.00,6723.42,453276.58,135058.27,30414.80
5
5
  21,60000.00,13446.83,29400.57,-2177.25,9180.00
6
6
  22,120000.00,13446.83,89400.57,8226.47,18360.00
7
7
  23,240000.00,13446.83,209400.57,44745.39,36720.00
@@ -1,10 +1,10 @@
1
- RECID,c00100,standard,c04800,iitax,payrolltax
2
- 11,30000,12400,17600,114.5,4590
3
- 12,60000,12400,47600,4462,9180
4
- 13,460000,12400,447600,131455,32754.8
5
- 21,60000,24800,35200,-3771,9180
6
- 22,120000,24800,95200,4924,18360
7
- 23,240000,24800,215200,35807,36720
8
- 31,30000,18650,11350,-4543.93,4590
9
- 32,60000,18650,41350,880,9180
10
- 33,120000,18650,101350,13537,18360
1
+ RECID,c00100,standard,c04800,iitax,payrolltax
2
+ 11,30000.00,12400.00,17600.00,114.50,4590.00
3
+ 12,60000.00,12400.00,47600.00,4462.00,9180.00
4
+ 13,460000.00,12400.00,447600.00,133795.00,30414.80
5
+ 21,60000.00,24800.00,35200.00,-3771.00,9180.00
6
+ 22,120000.00,24800.00,95200.00,4924.00,18360.00
7
+ 23,240000.00,24800.00,215200.00,35807.00,36720.00
8
+ 31,30000.00,18650.00,11350.00,-4543.93,4590.00
9
+ 32,60000.00,18650.00,41350.00,880.00,9180.00
10
+ 33,120000.00,18650.00,101350.00,13537.00,18360.00
@@ -1,7 +1,7 @@
1
1
  RECID,c00100,standard,c04800,iitax,payrolltax
2
2
  11,30000.00,6723.42,18988.43,-930.89,4590.00
3
3
  12,60000.00,6723.42,48988.43,5935.27,9180.00
4
- 13,460000.00,6723.42,453276.58,132718.27,32754.80
4
+ 13,460000.00,6723.42,453276.58,135058.27,30414.80
5
5
  21,60000.00,13446.83,29400.57,-6296.60,9180.00
6
6
  22,120000.00,13446.83,89400.57,8226.47,18360.00
7
7
  23,240000.00,13446.83,209400.57,44745.39,36720.00
@@ -1,10 +1,10 @@
1
- RECID,c00100,standard,c04800,iitax,payrolltax
2
- 11,30000,12400,17600,714.5,4590
3
- 12,60000,12400,47600,5062,9180
4
- 13,460000,12400,447600,131455,32754.8
5
- 21,60000,24800,35200,-2571,9180
6
- 22,120000,24800,95200,6124,18360
7
- 23,240000,24800,215200,35807,36720
8
- 31,30000,18650,11350,-3943.93,4590
9
- 32,60000,18650,41350,1480,9180
10
- 33,120000,18650,101350,14137,18360
1
+ RECID,c00100,standard,c04800,iitax,payrolltax
2
+ 11,30000.00,12400.00,17600.00,714.50,4590.00
3
+ 12,60000.00,12400.00,47600.00,5062.00,9180.00
4
+ 13,460000.00,12400.00,447600.00,133795.00,30414.80
5
+ 21,60000.00,24800.00,35200.00,-2571.00,9180.00
6
+ 22,120000.00,24800.00,95200.00,6124.00,18360.00
7
+ 23,240000.00,24800.00,215200.00,35807.00,36720.00
8
+ 31,30000.00,18650.00,11350.00,-3943.93,4590.00
9
+ 32,60000.00,18650.00,41350.00,1480.00,9180.00
10
+ 33,120000.00,18650.00,101350.00,14137.00,18360.00
@@ -1,7 +1,7 @@
1
1
  RECID,c00100,standard,c04800,iitax,payrolltax
2
2
  11,30000.00,12400.00,17600.00,114.50,4590.00
3
3
  12,60000.00,12400.00,47600.00,4462.00,9180.00
4
- 13,460000.00,12400.00,447600.00,131455.00,32754.80
4
+ 13,460000.00,12400.00,447600.00,133795.00,30414.80
5
5
  21,60000.00,24800.00,35200.00,-3771.00,9180.00
6
6
  22,120000.00,24800.00,95200.00,4924.00,18360.00
7
7
  23,240000.00,24800.00,215200.00,35807.00,36720.00
@@ -1,10 +1,10 @@
1
- RECID,c00100,standard,c04800,iitax,payrolltax
2
- 11,30000,12400,17600,114.5,4620
3
- 12,60000,12400,47600,4462,9240
4
- 13,460000,12400,447600,131455,40392.5
5
- 21,60000,24800,35200,-3771,9240
6
- 22,120000,24800,95200,4924,18480
7
- 23,240000,24800,215200,35807,36960
8
- 31,30000,18650,11350,-4543.93,4620
9
- 32,60000,18650,41350,880,9240
10
- 33,120000,18650,101350,13537,18480
1
+ RECID,c00100,standard,c04800,iitax,payrolltax
2
+ 11,30000.00,12400.00,17600.00,114.50,4620.00
3
+ 12,60000.00,12400.00,47600.00,4462.00,9240.00
4
+ 13,460000.00,12400.00,447600.00,133795.00,38052.50
5
+ 21,60000.00,24800.00,35200.00,-3771.00,9240.00
6
+ 22,120000.00,24800.00,95200.00,4924.00,18480.00
7
+ 23,240000.00,24800.00,215200.00,35807.00,36960.00
8
+ 31,30000.00,18650.00,11350.00,-4543.93,4620.00
9
+ 32,60000.00,18650.00,41350.00,880.00,9240.00
10
+ 33,120000.00,18650.00,101350.00,13537.00,18480.00
@@ -1,7 +1,7 @@
1
1
  RECID,c00100,standard,c04800,iitax,payrolltax
2
2
  11,30000.00,15882.08,8823.89,-917.61,4590.00
3
3
  12,60000.00,15882.08,38823.89,2082.39,9180.00
4
- 13,460000.00,15882.08,444117.92,103088.44,32754.80
4
+ 13,460000.00,15882.08,444117.92,105428.44,30414.80
5
5
  21,60000.00,31764.18,7059.70,-5920.62,9180.00
6
6
  22,120000.00,31764.18,67059.70,1605.97,18360.00
7
7
  23,240000.00,31764.18,187059.70,30882.84,36720.00
@@ -1,10 +1,10 @@
1
- RECID,c00100,standard,c04800,iitax,payrolltax
2
- 11,30000,12400,17600,114.5,4590
3
- 12,60000,12400,47600,4462,9180
4
- 13,460000,12400,447600,131455,58794.8
5
- 21,60000,24800,35200,-3771,9180
6
- 22,120000,24800,95200,4924,18360
7
- 23,240000,24800,215200,35807,36720
8
- 31,30000,18650,11350,-4543.93,4590
9
- 32,60000,18650,41350,880,9180
10
- 33,120000,18650,101350,13537,18360
1
+ RECID,c00100,standard,c04800,iitax,payrolltax
2
+ 11,30000.00,12400.00,17600.00,114.50,4590.00
3
+ 12,60000.00,12400.00,47600.00,4462.00,9180.00
4
+ 13,460000.00,12400.00,447600.00,133795.00,56454.80
5
+ 21,60000.00,24800.00,35200.00,-3771.00,9180.00
6
+ 22,120000.00,24800.00,95200.00,4924.00,18360.00
7
+ 23,240000.00,24800.00,215200.00,35807.00,36720.00
8
+ 31,30000.00,18650.00,11350.00,-4543.93,4590.00
9
+ 32,60000.00,18650.00,41350.00,880.00,9180.00
10
+ 33,120000.00,18650.00,101350.00,13537.00,18360.00
@@ -1,7 +1,7 @@
1
1
  RECID,c00100,standard,c04800,iitax,payrolltax
2
2
  11,30000.00,12404.02,17595.98,114.60,4590.00
3
3
  12,60000.00,12404.02,47595.98,4473.91,9180.00
4
- 13,460000.00,12404.02,447595.98,131529.61,32754.80
4
+ 13,460000.00,12404.02,447595.98,133869.61,30414.80
5
5
  21,60000.00,24808.03,35191.97,-3770.79,9180.00
6
6
  22,120000.00,24808.03,95191.97,4947.82,18360.00
7
7
  23,240000.00,24808.03,215191.97,35840.55,36720.00
@@ -1,7 +1,7 @@
1
1
  RECID,c00100,standard,c04800,iitax,payrolltax
2
2
  11,30000.00,15882.08,14117.92,-105.85,4590.00
3
3
  12,60000.00,15882.08,44117.92,4067.80,9180.00
4
- 13,460000.00,15882.08,444117.92,131867.98,32754.80
4
+ 13,460000.00,15882.08,444117.92,134207.98,30414.80
5
5
  21,60000.00,31764.18,28235.82,-2211.70,9180.00
6
6
  22,120000.00,31764.18,88235.82,6635.60,18360.00
7
7
  23,240000.00,31764.18,208235.82,41735.60,36720.00
@@ -1,7 +1,7 @@
1
1
  RECID,c00100,standard,c04800,iitax,payrolltax
2
2
  11,30000.00,13446.83,12265.02,-573.50,4590.00
3
3
  12,60000.00,13446.83,42265.02,2739.00,9180.00
4
- 13,460000.00,13446.83,446553.17,106145.92,32754.80
4
+ 13,460000.00,13446.83,446553.17,108485.92,30414.80
5
5
  21,60000.00,26893.67,15953.73,-4004.63,9180.00
6
6
  22,120000.00,26893.67,75953.73,2495.37,18360.00
7
7
  23,240000.00,26893.67,195953.73,36933.93,36720.00
@@ -1,10 +1,10 @@
1
- RECID,c00100,standard,c04800,iitax,payrolltax
2
- 11,30000,12400,17600,114.5,4590
3
- 12,60000,12400,47600,4462,9180
4
- 13,460000,12400,447600,131455,32754.8
5
- 21,60000,24800,35200,-3771,9180
6
- 22,120000,24800,95200,4924,18360
7
- 23,240000,24800,215200,35807,36720
8
- 31,30000,18650,11350,-4543.93,4590
9
- 32,60000,18650,41350,880,9180
10
- 33,120000,18650,101350,13537,18360
1
+ RECID,c00100,standard,c04800,iitax,payrolltax
2
+ 11,30000.00,12400.00,17600.00,114.50,4590.00
3
+ 12,60000.00,12400.00,47600.00,4462.00,9180.00
4
+ 13,460000.00,12400.00,447600.00,133795.00,30414.80
5
+ 21,60000.00,24800.00,35200.00,-3771.00,9180.00
6
+ 22,120000.00,24800.00,95200.00,4924.00,18360.00
7
+ 23,240000.00,24800.00,215200.00,35807.00,36720.00
8
+ 31,30000.00,18650.00,11350.00,-4543.93,4590.00
9
+ 32,60000.00,18650.00,41350.00,880.00,9180.00
10
+ 33,120000.00,18650.00,101350.00,13537.00,18360.00
taxcalc/reforms/ext.json CHANGED
@@ -1,5 +1,5 @@
1
1
  // REFORM TO EXTEND TEMPORARY TCJA PROVISIONS BEYOND 2025
2
- // USING TAX-CALCULATOR 4.3.3
2
+ // USING TAX-CALCULATOR 4.3.4
3
3
  // WITH 2025-to-2026 INDEXING FACTOR = 1.022000
4
4
  // AND 2028-to-2029 INDEXING FACTOR = 1.019400
5
5
  {
@@ -1,7 +1,7 @@
1
1
  RECID,c00100,standard,c04800,iitax,payrolltax
2
2
  11,30000.00,6723.42,18988.43,554.60,5100.00
3
3
  12,60000.00,6723.42,48988.43,5935.27,10200.00
4
- 13,460000.00,6723.42,453276.58,132718.27,35418.00
4
+ 13,460000.00,6723.42,453276.58,135058.27,33078.00
5
5
  21,60000.00,13446.83,29400.57,-2177.25,10200.00
6
6
  22,120000.00,13446.83,89400.57,8226.47,20400.00
7
7
  23,240000.00,13446.83,209400.57,44745.39,40800.00
@@ -1,7 +1,7 @@
1
1
  RECID,c00100,standard,c04800,iitax,payrolltax
2
2
  11,30000.00,6723.42,18988.43,554.60,4590.00
3
3
  12,60000.00,6723.42,48988.43,5935.27,9180.00
4
- 13,460000.00,6723.42,453276.58,132718.27,46680.00
4
+ 13,460000.00,6723.42,453276.58,135058.27,44340.00
5
5
  21,60000.00,13446.83,29400.57,-2177.25,9180.00
6
6
  22,120000.00,13446.83,89400.57,8226.47,18360.00
7
7
  23,240000.00,13446.83,209400.57,44745.39,36720.00
@@ -1,7 +1,7 @@
1
1
  RECID,c00100,standard,c04800,iitax,payrolltax
2
2
  11,30000.00,6723.42,18988.43,554.60,4590.00
3
3
  12,60000.00,6723.42,48988.43,5935.27,9180.00
4
- 13,460000.00,6723.42,453276.58,132718.27,72720.00
4
+ 13,460000.00,6723.42,453276.58,135058.27,70380.00
5
5
  21,60000.00,13446.83,29400.57,-2177.25,9180.00
6
6
  22,120000.00,13446.83,89400.57,8226.47,18360.00
7
7
  23,240000.00,13446.83,209400.57,44745.39,36720.00
@@ -1,7 +1,7 @@
1
1
  RECID,c00100,standard,c04800,iitax,payrolltax
2
2
  11,30000.00,6723.42,18988.43,554.60,4590.00
3
3
  12,60000.00,6723.42,48988.43,5935.27,9180.00
4
- 13,460000.00,6723.42,453276.58,132718.27,32475.05
4
+ 13,460000.00,6723.42,453276.58,134778.52,30414.80
5
5
  21,60000.00,13446.83,29400.57,-2177.25,9180.00
6
6
  22,120000.00,13446.83,89400.57,8226.47,18360.00
7
7
  23,240000.00,13446.83,209400.57,44745.39,36720.00
taxcalc/taxcalcio.py CHANGED
@@ -546,16 +546,18 @@ class TaxCalcIO():
546
546
  assert 'RECID' in column_order, 'RECID not in dump output list'
547
547
  column_order.remove('RECID')
548
548
  column_order.insert(0, 'RECID')
549
+ weight_vname = 's006'
549
550
  else:
550
551
  outdf = self.minimal_output()
551
552
  column_order = outdf.columns
553
+ weight_vname = 'WEIGHT'
552
554
  assert len(outdf.index) == self.calc.array_len
553
555
  if self.tmd_input_data: # pragma: no cover
554
- if "s006" in outdf:
555
- weights = outdf["s006"].round(5)
556
+ if weight_vname in outdf:
557
+ weights = outdf[weight_vname].round(5)
556
558
  outdf = outdf.round(2)
557
- if "s006" in outdf:
558
- outdf["s006"] = weights
559
+ if weight_vname in outdf:
560
+ outdf[weight_vname] = weights
559
561
  outdf.to_csv(self._output_filename, columns=column_order,
560
562
  index=False)
561
563
  else:
@@ -66,26 +66,26 @@ AGI category T-C SOI %diff
66
66
  ALL 6.179 22.043 -72.0
67
67
  TABLE for ITAX
68
68
  AGI category T-C SOI %diff
69
- [-9e+99, 1) -0.020 0.242 -108.0
70
- [1, 5000) -1.630 0.041 -4085.6
71
- [5000, 10000) -7.182 0.368 -2051.5
72
- [10000, 15000) -10.397 1.381 -852.7
73
- [15000, 20000) -8.674 3.524 -346.2
74
- [20000, 25000) -6.331 6.191 -202.3
75
- [25000, 30000) -1.413 8.753 -116.1
76
- [30000, 40000) 12.198 25.168 -51.5
77
- [40000, 50000) 25.845 32.530 -20.6
78
- [50000, 75000) 84.127 99.792 -15.7
79
- [75000, 100000) 91.075 105.901 -14.0
80
- [100000, 200000) 343.323 316.350 +8.5
81
- [200000, 500000) 239.244 299.832 -20.2
82
- [500000, 1000000) 62.869 154.389 -59.3
83
- [1000000, 1500000) 26.106 66.324 -60.6
84
- [1500000, 2000000) 5.167 39.672 -87.0
85
- [2000000, 5000000) 7.754 101.489 -92.4
86
- [5000000, 10000000) 7.473 56.334 -86.7
87
- [10000000, 9e+99) 49.446 139.611 -64.6
88
- ALL 918.982 1457.891 -37.0
69
+ [-9e+99, 1) -0.006 0.242 -102.3
70
+ [1, 5000) -1.529 0.041 -3838.6
71
+ [5000, 10000) -6.862 0.368 -1964.8
72
+ [10000, 15000) -9.652 1.381 -798.8
73
+ [15000, 20000) -7.815 3.524 -321.8
74
+ [20000, 25000) -4.865 6.191 -178.6
75
+ [25000, 30000) 2.983 8.753 -65.9
76
+ [30000, 40000) 19.526 25.168 -22.4
77
+ [40000, 50000) 31.720 32.530 -2.5
78
+ [50000, 75000) 91.782 99.792 -8.0
79
+ [75000, 100000) 95.223 105.901 -10.1
80
+ [100000, 200000) 352.848 316.350 +11.5
81
+ [200000, 500000) 245.326 299.832 -18.2
82
+ [500000, 1000000) 64.372 154.389 -58.3
83
+ [1000000, 1500000) 26.700 66.324 -59.7
84
+ [1500000, 2000000) 5.214 39.672 -86.9
85
+ [2000000, 5000000) 7.827 101.489 -92.3
86
+ [5000000, 10000000) 7.520 56.334 -86.7
87
+ [10000000, 9e+99) 49.547 139.611 -64.5
88
+ ALL 969.859 1457.891 -33.5
89
89
  TABLE for SETAX
90
90
  AGI category T-C SOI %diff
91
91
  [-9e+99, 1) 0.014 0.656 -97.9
@@ -66,26 +66,26 @@ AGI category T-C SOI %diff
66
66
  ALL 27.149 22.043 +23.2
67
67
  TABLE for ITAX
68
68
  AGI category T-C SOI %diff
69
- [-9e+99, 1) 3.729 0.242 +1437.7
70
- [1, 5000) -2.402 0.041 -5973.3
71
- [5000, 10000) -7.413 0.368 -2114.3
72
- [10000, 15000) -22.411 1.381 -1722.4
73
- [15000, 20000) -19.575 3.524 -655.5
74
- [20000, 25000) -10.028 6.191 -262.0
75
- [25000, 30000) -3.804 8.753 -143.5
76
- [30000, 40000) 11.438 25.168 -54.6
77
- [40000, 50000) 26.142 32.530 -19.6
78
- [50000, 75000) 97.223 99.792 -2.6
79
- [75000, 100000) 105.118 105.901 -0.7
80
- [100000, 200000) 329.752 316.350 +4.2
81
- [200000, 500000) 331.839 299.832 +10.7
82
- [500000, 1000000) 172.070 154.389 +11.5
83
- [1000000, 1500000) 75.630 66.324 +14.0
84
- [1500000, 2000000) 44.087 39.672 +11.1
85
- [2000000, 5000000) 114.164 101.489 +12.5
86
- [5000000, 10000000) 64.082 56.334 +13.8
87
- [10000000, 9e+99) 96.814 139.611 -30.7
88
- ALL 1406.456 1457.891 -3.5
69
+ [-9e+99, 1) 4.502 0.242 +1756.7
70
+ [1, 5000) -1.776 0.041 -4442.6
71
+ [5000, 10000) -5.779 0.368 -1670.5
72
+ [10000, 15000) -18.011 1.381 -1403.9
73
+ [15000, 20000) -15.938 3.524 -552.3
74
+ [20000, 25000) -7.806 6.191 -226.1
75
+ [25000, 30000) -1.816 8.753 -120.7
76
+ [30000, 40000) 14.520 25.168 -42.3
77
+ [40000, 50000) 29.057 32.530 -10.7
78
+ [50000, 75000) 103.019 99.792 +3.2
79
+ [75000, 100000) 109.819 105.901 +3.7
80
+ [100000, 200000) 339.089 316.350 +7.2
81
+ [200000, 500000) 339.270 299.832 +13.2
82
+ [500000, 1000000) 175.513 154.389 +13.7
83
+ [1000000, 1500000) 76.857 66.324 +15.9
84
+ [1500000, 2000000) 44.655 39.672 +12.6
85
+ [2000000, 5000000) 115.347 101.489 +13.7
86
+ [5000000, 10000000) 64.604 56.334 +14.7
87
+ [10000000, 9e+99) 97.259 139.611 -30.3
88
+ ALL 1462.385 1457.891 +0.3
89
89
  TABLE for SETAX
90
90
  AGI category T-C SOI %diff
91
91
  [-9e+99, 1) 0.761 0.656 +16.1
@@ -15,11 +15,11 @@ Tax before Credits ($b),1116.0,1380.4,1449.4,1497.9,1764.3,1838.0,1939.7,2018.7,
15
15
  Refundable Credits ($b),70.8,102.5,102.7,655.0,827.1,98.5,106.2,111.9,112.8,97.8
16
16
  Nonrefundable Credits ($b),32.7,97.2,99.2,99.2,0.0,107.7,108.4,109.4,111.2,30.0
17
17
  Reform Surtaxes ($b),0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0
18
- Other Taxes ($b),5.5,10.7,11.3,12.6,13.9,14.4,16.5,17.6,18.8,19.9
19
- Ind Income Tax ($b),1018.1,1191.4,1258.9,756.3,951.0,1646.2,1741.7,1815.1,1918.2,2256.9
20
- Payroll Taxes ($b),1040.8,1141.6,1194.9,1217.9,1318.7,1421.6,1509.2,1585.1,1660.8,1735.0
18
+ Other Taxes ($b),61.3,70.4,72.7,75.9,82.3,87.9,91.9,97.0,102.3,107.8
19
+ Ind Income Tax ($b),1073.9,1251.1,1320.2,819.6,1019.4,1719.7,1817.1,1894.4,2001.7,2344.7
20
+ Payroll Taxes ($b),985.0,1081.8,1133.6,1154.6,1250.3,1348.0,1433.8,1505.8,1577.3,1647.1
21
21
  Combined Liability ($b),2059.0,2333.0,2453.8,1974.2,2269.7,3067.8,3250.9,3400.2,3578.9,3991.9
22
- With Income Tax <= 0 (#m),88.1,96.2,97.0,135.4,127.8,96.1,97.8,99.1,99.6,97.3
22
+ With Income Tax <= 0 (#m),86.2,94.6,95.3,133.1,126.0,94.5,96.1,97.4,97.9,95.7
23
23
  With Combined Tax <= 0 (#m),62.8,65.4,66.4,98.2,97.7,67.9,69.3,70.4,71.3,70.7
24
24
  UBI Benefits ($b),0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0
25
25
  "Total Benefits, Consumption Value ($b)",2790.7,3225.5,3429.9,3617.0,3993.0,4069.6,4390.5,4696.3,4983.2,5266.5