; and (iii) loan cancellation costs incurred for that quarter under section 465. (3) (A) The Secretary shall calculate the amounts due to the Secretary under paragraph (1) (adjusted in accordance with subparagraph (B), as appropriate) and paragraph (2) and shall promptly inform the institution of such calculated amounts. (B) In the event that, prior to the date of enactment of the Student Aid and Fiscal Responsibility Act of 2009, an institution made a short-term, interest-free loan to the institution’s student loan fund established under this part in anticipation of collections or receipt of Federal capital contributions, and the institution demonstrates to the Secretary, on or before June 30, 2019, that such loan will still be outstanding after June 30, 2019, the Secretary shall subtract the amount of such outstanding loan from the cash balance of the institution’s student loan fund that is used to calculate the amount due to the Secretary under paragraph (1). An adjustment of an amount due to the Secretary under this subparagraph shall be made by the Secretary on a case-by-case basis. (4) Any remaining balance at the end of a quarter after a payment under paragraph (1) or (2) shall be retained by the institution for use at its discretion. Any balance so retained shall be withdrawn from the student loan fund and shall not be counted in calculating amounts owed to the Secretary for subsequent quarters. (5) Each institution shall make the quarterly payments to the Secretary described in paragraph (2) until all outstanding Federal Perkins Loans at that institution have been assigned to the Secretary and there are no funds remaining in the institution’s student loan fund. (6) In the event that the institution’s administrative costs, charges, and cancellation costs described in paragraph (2) for a quarter exceed the amount owed to the Secretary under paragraphs (1) and (2) for that quarter, no payment shall be due to the Secretary from the institution for that quarter and the Secretary shall pay the institution,