; and (ii) $12,000. (B) Insufficient funds If the amount available to provide emergency impact aid under this section is insufficient to pay the full amount that each State educational agency is eligible to receive under this section, the Secretary of Education shall ratably reduce the amount of such emergency impact aid to each such State educational agency. (C) Retention of State share In the case of a State educational agency that has made a payment to a local educational agency prior to the date of enactment of this Act for the purpose of covering additional costs incurred as a result of enrolling an immigrant student in a school served by the local educational agency for the 2016–2017 and 2017–2018 school years, the State educational agency may retain a portion of the payment described in paragraph (2)(A)(ii) that bears the same relation to the total amount of the payment under such paragraph as the sum of such prior payments bears to the total cost of attendance for all students in that local educational agency for whom the State educational agency made such prior payments. (2) Aid to eligible local educational agencies and eligible BIA-funded schools (A) Quarterly installments (i) In general A State educational agency shall provide emergency impact aid payments under this section to eligible local educational agencies and eligible BIA-funded schools on a quarterly basis for the 2017–2018 school year by such dates as determined by the Secretary of Education. Such quarterly installment payments shall be based on the number of immigrant students reported under subsection (b)(2). (ii) Payment amount Subject to paragraph (1)(B), each quarterly installment payment under clause (i) shall equal 25 percent of the amount determined under paragraph (1)(A). (iii) Timeline The Secretary of Education shall establish a timeline for quarterly reporting on the number of immigrant students in order to make the appropriate disbursements in a timely manner. (iv) Insufficient funds If, for any quarter, the amount available to