(B). (ii) Except as provided by subparagraph (D)(ii), for each academic year occurring after the academic year specified in clause (i), the amount shall be the total amount the educational institution paid under this section for work-study allowance to individuals enrolled at such educational institution during the previous academic year in which individuals enrolled at such educational institution participated in the work-study program. (D) (i) Except as provided in clause (ii), if the Secretary provides an annual amount to an educational institution under subparagraph (B) or (C) that is more than the total amount the educational institution pays to individuals under paragraph (1)— (I) the educational institution shall return to the Secretary the unpaid amount