is amended to read as follows: (IV) subject to the provisions of paragraph (14), upon hardship of the employee, or". . (c) Effective date The amendments made by this section shall apply to plan years beginning after December 31, 2017. 1505. Extended rollover period for the rollover of plan loan offset amounts in certain cases (a) In general Paragraph (3) of section 402(c) is amended by adding at the end the following new subparagraph: (C) Rollover of certain plan loan offset amounts (i) In general In the case of a qualified plan loan offset amount, paragraph (1) shall not apply to any transfer of such amount made after the due date (including extensions) for filing the return of tax for the taxable year in which such amount is treated as distributed from a qualified employer plan. (ii) Qualified plan loan offset amount For purposes of this subparagraph, the term qualified plan loan offset amount means a plan loan offset amount which is treated as distributed from a qualified employer plan to a participant or beneficiary solely by reason of— (I) the termination of the qualified employer plan, or (II) the failure to meet the repayment terms of the loan from such plan because of the separation from service of the participant (whether due to layoff, cessation of business, termination of employment, or otherwise). (iii) Plan loan offset amount For purposes of clause (ii), the term plan loan offset amount means the amount by which the participant's accrued benefit under the plan is reduced in order to repay a loan from the plan. (iv) Limitation This subparagraph shall not apply to any plan loan offset amount unless such plan loan offset amount relates to a loan to which section 72(p)(1) does not apply by reason of section 72(p)(2). (v) Qualified employer plan For purposes of this subsection, the term qualified employer plan has the meaning given such term by section 72(p)(4). . (b) Conforming amendment Subparagraph (A) of section 402(c)(3) is amended by striking subparagraph (B) and inserting subparagraphs (B) and (C)