of such Code is amended by striking or at the end of clause (ii), by inserting or at the end of clause (iii), and by adding after clause (iii) the following: (iv) with respect to amounts invested in a lifetime income investment (as defined in section 401(a)(38)(B)(ii)) or a managed account investment (as defined in section 401(a)(38)(B)(v)), the date that is 90 days prior to the date that such lifetime income investment or such managed account investment may no longer be held as an investment option under the plan (within the meaning of section 401(a)(38)(B)(vii)), provided that any distribution under this subparagraph must be in the form of a qualified distribution (as defined in section 401(a)(38)(B)(i)) or, in the case of a lifetime income investment, a qualified plan distribution annuity contract (as defined in section 401(a)(38)(B)(iv)), . (e) Effective date The amendments made by this section shall apply to plan years beginning after December 31, 2017. 8. Increase in credit limitation for small employer pension plan startup costs (a) In general Paragraph (1) of section 45E(b) of the Internal Revenue Code of 1986 is amended to read as follows: (1) for the first credit year and each of the 4 taxable years immediately following the first credit year, the greater of— (A) $500, or (B) the lesser of— (i) $250 for each employee of the eligible employer who is not a highly compensated employee (as defined in section 414(q)) and who is eligible to participate in the eligible employer plan maintained by the eligible employer, or (ii) $5,000, and . (b) Special rule for employers with 25 or fewer employees Subsection (a) of section 45E of such Code is amended by inserting before the period at the end the following: (100 percent of such costs in the case of an eligible employer with 25 or fewer employees, as determined by substituting 25 for 100 in section 408(p)(2)(C)(i)) . (c) Automatic contribution plan Paragraph (2) of section 45E(d) of such Code is amended by striking a qualified employer plan within the meaning