taxcalc 4.3.2__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 (41) hide show
  1. taxcalc/__init__.py +1 -1
  2. taxcalc/calcfunctions.py +18 -21
  3. taxcalc/policy.py +1 -1
  4. taxcalc/policy_current_law.json +1297 -31
  5. taxcalc/records_variables.json +5 -6
  6. taxcalc/reforms/2017_law.out.csv +1 -1
  7. taxcalc/reforms/ARPA.out.csv +10 -10
  8. taxcalc/reforms/BrownKhanna.out.csv +1 -1
  9. taxcalc/reforms/CARES.out.csv +10 -10
  10. taxcalc/reforms/ConsolidatedAppropriationsAct2021.out.csv +1 -1
  11. taxcalc/reforms/Larson2019.out.csv +10 -10
  12. taxcalc/reforms/Renacci.out.csv +1 -1
  13. taxcalc/reforms/SandersDeFazio.out.csv +10 -10
  14. taxcalc/reforms/TCJA.out.csv +1 -1
  15. taxcalc/reforms/Trump2016.out.csv +1 -1
  16. taxcalc/reforms/Trump2017.out.csv +1 -1
  17. taxcalc/reforms/clp.out.csv +10 -10
  18. taxcalc/reforms/ext.json +20 -20
  19. taxcalc/reforms/ptaxes0.out.csv +1 -1
  20. taxcalc/reforms/ptaxes1.out.csv +1 -1
  21. taxcalc/reforms/ptaxes2.out.csv +1 -1
  22. taxcalc/reforms/ptaxes3.out.csv +1 -1
  23. taxcalc/taxcalcio.py +6 -4
  24. taxcalc/tests/cmpi_cps_expect.txt +20 -20
  25. taxcalc/tests/cmpi_puf_expect.txt +20 -20
  26. taxcalc/tests/cpscsv_agg_expect.csv +16 -16
  27. taxcalc/tests/puf_var_correl_coeffs_2016.csv +39 -39
  28. taxcalc/tests/puf_var_wght_means_by_year.csv +5 -5
  29. taxcalc/tests/pufcsv_agg_expect.csv +17 -17
  30. taxcalc/tests/pufcsv_mtr_expect.txt +8 -8
  31. taxcalc/tests/reforms_expect.csv +7 -7
  32. taxcalc/tests/test_calcfunctions.py +11 -10
  33. taxcalc/tests/test_pufcsv.py +1 -3
  34. taxcalc/tests/test_reforms.py +1 -1
  35. taxcalc/tests/test_utils.py +24 -24
  36. {taxcalc-4.3.2.dist-info → taxcalc-4.3.4.dist-info}/METADATA +2 -2
  37. {taxcalc-4.3.2.dist-info → taxcalc-4.3.4.dist-info}/RECORD +41 -41
  38. {taxcalc-4.3.2.dist-info → taxcalc-4.3.4.dist-info}/WHEEL +1 -1
  39. {taxcalc-4.3.2.dist-info → taxcalc-4.3.4.dist-info}/LICENSE +0 -0
  40. {taxcalc-4.3.2.dist-info → taxcalc-4.3.4.dist-info}/entry_points.txt +0 -0
  41. {taxcalc-4.3.2.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.2'
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
 
taxcalc/policy.py CHANGED
@@ -38,7 +38,7 @@ class Policy(Parameters):
38
38
  DEFAULTS_FILE_NAME = 'policy_current_law.json'
39
39
  DEFAULTS_FILE_PATH = os.path.abspath(os.path.dirname(__file__))
40
40
  JSON_START_YEAR = 2013 # remains the same unless earlier data added
41
- LAST_KNOWN_YEAR = 2024 # last year for which indexed param vals are known
41
+ LAST_KNOWN_YEAR = 2025 # last year for which indexed param vals are known
42
42
  # should increase LAST_KNOWN_YEAR by one every calendar year
43
43
  LAST_BUDGET_YEAR = 2034 # last extrapolation year
44
44
  # should increase LAST_BUDGET_YEAR by one every calendar year