Skip to content

Commit

Permalink
Fix calculation of c02900
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholmer committed Apr 19, 2018
1 parent f978987 commit 48f83cc
Show file tree
Hide file tree
Showing 3 changed files with 863 additions and 866 deletions.
5 changes: 1 addition & 4 deletions taxcalc/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,6 @@ def CapGains(p23250, p22250, sep, ALD_StudentLoan_hc,
ymod1 = (e00200 + e00700 + e00800 + e01400 + e01700 +
invinc - invinc_agi_ec + e02100 + e02300 +
max(e00900 + e02000, -ALD_BusinessLosses_c[MARS - 1]))
# compute business loss excluded from ymod1 but included in expanded_income
excluded_loss = min(e00900 + e02000 + ALD_BusinessLosses_c[MARS - 1], 0.)
c02900 += excluded_loss
if CG_nodiff:
# apply QDIV+CG exclusion if QDIV+LTCG receive no special tax treatment
qdcg_pos = max(0., e00650 + c01000)
Expand All @@ -327,7 +324,7 @@ def CapGains(p23250, p22250, sep, ALD_StudentLoan_hc,
ymod2 = e00400 + (0.50 * e02400) - c02900
ymod3 = (1. - ALD_StudentLoan_hc) * e03210 + e03230 + e03240
ymod = ymod1 + ymod2 + ymod3
return (c01000, c23650, ymod, ymod1, invinc_agi_ec, c02900)
return (c01000, c23650, ymod, ymod1, invinc_agi_ec)


@iterate_jit(nopython=True)
Expand Down
2 changes: 1 addition & 1 deletion taxcalc/tests/reforms.json
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@
"name": "Repeal TCJA chained CPI indexing",
"output_type": "iitax",
"compare_with": {},
"expected": "Tax-Calculator,0.0,-46.3,-48.7,-53.4"
"expected": "Tax-Calculator,0.0,-30.2,-32.5,-36.8"
},

"59": {
Expand Down
Loading

0 comments on commit 48f83cc

Please sign in to comment.