Check-in [646bccbf0b]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix calculation of contribution_amount when magi is zero.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:646bccbf0bb136ce257e1737c3dc09b3e9866878
User & Date: mrh 2016-12-01 20:55:57
Context
2016-12-02
23:00
Correct typo in comment. check-in: cf7c406365 user: mrh tags: trunk
2016-12-01
20:55
Fix calculation of contribution_amount when magi is zero. check-in: 646bccbf0b user: mrh tags: trunk
2015-06-18
00:04
Update Python 2.7 version after doing "conda update conda" and "conda update anaconda" commands. check-in: 2d58483503 user: mrh tags: trunk
Changes

Changes to acataxcredit.py.

258
259
260
261
262
263
264



265
266
267
268
269
270
271
272
            return amts_dict
        # compute cap_fraction (i.e., the "applicable figure" on Form 8962):
        cap_fraction = self.cap_fraction(funit['year'], funit['id'], magi_pct)
        if emulating_kaiser:
            cap_fraction = kaiser_cap_fraction(funit, magi_pct)
        amts_dict['cap_fraction'] = cap_fraction
        # compute annual contribution amount as on Form 8962 line 8a:



        contribution_amount = cap_fraction * magi
        amts_dict['contribution_amount'] = round(contribution_amount, 2)
        # compute second lowest cost Silver plan (SLCSP) premium:
        slcsp_premium = self._slcsp.family_premium(funit, cov_ind_list)
        amts_dict['slcsp_premium'] = round(slcsp_premium, 2)
        # married filing separate units are not generally eligible for PTC:
        if funit['filing_status'] == 3:
            # married-filing-separately tax families not eligible for PTC







>
>
>
|







258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
            return amts_dict
        # compute cap_fraction (i.e., the "applicable figure" on Form 8962):
        cap_fraction = self.cap_fraction(funit['year'], funit['id'], magi_pct)
        if emulating_kaiser:
            cap_fraction = kaiser_cap_fraction(funit, magi_pct)
        amts_dict['cap_fraction'] = cap_fraction
        # compute annual contribution amount as on Form 8962 line 8a:
        if cap_fraction > 1.0:
            contribution_amount = 9.9e99  # because ineligble for PTC
        else:
            contribution_amount = cap_fraction * magi
        amts_dict['contribution_amount'] = round(contribution_amount, 2)
        # compute second lowest cost Silver plan (SLCSP) premium:
        slcsp_premium = self._slcsp.family_premium(funit, cov_ind_list)
        amts_dict['slcsp_premium'] = round(slcsp_premium, 2)
        # married filing separate units are not generally eligible for PTC:
        if funit['filing_status'] == 3:
            # married-filing-separately tax families not eligible for PTC