; and (3) to make loans under section 460A and section 460B after section 459A . (b) Refinancing Program Part D of title IV of the Higher Education Act of 1965 ( 20 U.S.C. 1087a et seq.) is amended by adding at the end the following: 460A. Refinancing FFEL and Federal Direct Loans (a) In general Beginning not later than 180 days after the date of enactment of the Bank on Students Emergency Loan Refinancing Act , the Secretary shall establish a program under which the Secretary, upon the receipt of an application from a qualified borrower, makes a loan under this part, in accordance with the provisions of this section, in order to permit the borrower to obtain the interest rate provided under subsection (c). (b) Refinancing Direct Loans (1) Federal Direct Loans Upon application of a qualified borrower, the Secretary shall repay a Federal Direct Stafford Loan, a Federal Direct Unsubsidized Stafford Loan, a Federal Direct PLUS Loan, or a Federal Direct Consolidation Loan of the qualified borrower, for which the first disbursement was made, or the application for the consolidation loan was received, before July 1, 2017, with the proceeds of a refinanced Federal Direct Stafford Loan, a Federal Direct Unsubsidized Stafford Loan, a Federal Direct PLUS Loan, or a Federal Direct Consolidation Loan, respectively, issued to the borrower in an amount equal to the sum of the unpaid principal, accrued unpaid interest, and late charges of the original loan. (2) Refinancing FFEL program loans as refinanced Federal Direct Loans Upon application of a qualified borrower for any loan that was made, insured, or guaranteed under part B and for which the first disbursement was made, or the application for the consolidation loan was received, before July 1, 2010, the Secretary shall make a loan under this part, in an amount equal to the sum of the unpaid principal, accrued unpaid interest, and late charges of the original loan to the borrower in accordance with the following: (A) The Secretary shall pay the proceeds of such loan to the