; (2) in subparagraph (A), as so designated, by striking paragraph and inserting subparagraph ; and (3) by adding at the end the following: (B) The Secretary may extend the period of any loan made under this section in accordance with terms and conditions as the Secretary shall prescribe, but in no event shall the total term of the loan exceed 40 years. . (b) Application The amendment made under subsection (a) shall apply with respect to loans made under section 502 of the Housing Act of 1949 ( 42 U.S.C. 1472 ) before, on, or after the date of enactment of this Act.