; and (B) the amount described in paragraph (2) with respect to the court and the fiscal year. (2) Amount described The amount described in this paragraph with respect to a court and a fiscal year is the amount that bears the same ratio to the total of the amounts reserved under sections 436(b)(2) and 437(b)(2) for grants under this section for the fiscal year (after applying paragraphs (1)(A) and (3) of this subsection) as the number of individuals in the State in which the court is located who have not attained 21 years of age bears to the total number of such individuals in all States with a highest State court that has an approved application under this section for the fiscal year. (3) Indian tribes From the amounts reserved under section 436(b)(2) for a fiscal year, the Secretary shall, before applying paragraph (1) of this subsection, allocate $1,000,000 for grants to be awarded on a competitive basis among the highest courts of Indian tribes or tribal consortia that— (A) are operating a program under part E, in accordance with section 479B; (B) are seeking to operate a program under part E and have received an implementation grant under section 476; or (C) have a court responsible for proceedings related to foster care or adoption. ; (4) in subsection (d), by striking 2012 through 2016 and inserting 2018 through 2022 ; and (5) by striking subsection (e). (c) Effective date The amendments made by this section shall take effect on October 1, 2017.