The principal amount of an advance under the model program, and any interest remaining unpaid pursuant to subparagraph (A)(ii) shall be repayable when the housing no longer qualifies as affordable housing in accordance with section
12749
(b) of this title.