Skip to content

Commit

Permalink
Merge pull request #2 from jlyons871/jitting_calc/apply
Browse files Browse the repository at this point in the history
python 3 error fix
  • Loading branch information
MattHJensen committed Jan 15, 2015
2 parents 163f9c7 + 16ce4f1 commit 2bb4c1e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions taxcalc/calculate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ def AMTI_calc( c60000, _exact, e60290, _posagi, e07300, x60260, c24517,
c62600 = max(0., _amtex[FLPDYR - DEFAULT_YR, MARS - 1] - 0.25 * max(0., c62100 - _amtys[FLPDYR - DEFAULT_YR, MARS - 1]))

if DOBYR > 0:
_agep = math.ceil((12 * (FLPDYR - DOBYR) - DOBMD / 100) / 12)
_agep = float(math.ceil((12 * (FLPDYR - DOBYR) - DOBMD / 100) / 12))
else:
_agep = 0.

Expand Down Expand Up @@ -1527,9 +1527,8 @@ def ExpEarnedInc_calc( _exact, c00100, _agcmax, _pcmax, FLPDYR, DEFAULT_YR,

if _exact == 1:

_tratio = math.ceil(max((c00100 - _agcmax[FLPDYR - DEFAULT_YR])

/ 2000, 0.))
_tratio = float(math.ceil(max((c00100 - _agcmax[FLPDYR - DEFAULT_YR])
/ 2000, 0.)))

c33200 = c33000 * 0.01 * max(20., _pcmax[FLPDYR - DEFAULT_YR]
- min(15., _tratio))
Expand Down Expand Up @@ -1647,13 +1646,13 @@ def NumDep_calc(EICYB1, EICYB2, EICYB3,


if MARS == 2 and _modagi > 0:
_val_ymax = (_ymax[_ieic, FLPDYR - DEFAULT_YR]
+ _joint[FLPDYR - DEFAULT_YR, _ieic])
_val_ymax = float((_ymax[_ieic, FLPDYR - DEFAULT_YR]
+ _joint[FLPDYR - DEFAULT_YR, _ieic]))

else: _val_ymax = int(0.0)
else: _val_ymax = 0.

if (MARS == 1 or MARS == 4 or MARS == 5 or MARS == 7) and _modagi > 0:
_val_ymax = _ymax[_ieic, FLPDYR - DEFAULT_YR]
_val_ymax = float(_ymax[_ieic, FLPDYR - DEFAULT_YR])


if (MARS == 1 or MARS == 4 or MARS == 5 or
Expand Down

0 comments on commit 2bb4c1e

Please sign in to comment.