; or (ii) are insolvent for purposes of section 418E of such Code, if they became insolvent after December 16, 2014, and have not been terminated; and (B) subject to subsection (b), to establish appropriate terms for such loans. (2) Consultation The Director of the Pension Rehabilitation Administration shall consult with the Secretary of the Treasury, the Secretary of Labor, and the Director of the Pension Benefit Guaranty Corporation before making any loan under paragraph (1), and shall share with such persons the application and plan information with respect to each such loan. (3) Establishment of loan program (A) In general A program to make the loans authorized under this section shall be established not later than March 31, 2018, with guidance regarding such program to be promulgated by the Director of the Pension Rehabilitation Administration, in consultation with the Pension Benefit Guaranty Corporation and the Department of Labor, not later than June 1, 2018. (B) Loans authorized before program date Without regard to whether the program under subparagraph (A) has been established, a plan may apply for a loan under this section before either date described in such subparagraph, and the Pension Rehabilitation Administration shall approve the application and make the loan before establishment of the program if necessary to avoid any suspension of the accrued benefits of participants. (b) Loan terms The terms of any loan made under subsection (a) shall state that— (1) the plan shall make payments of interest on the loan for a period of 29 years beginning on the date of the loan; (2) final payment of interest and principal shall be due in the 30th year after the date of the loan