; and (II) in clause (i), by inserting for such year or period after subparagraph (B) ; and (iii) in subparagraph (B)— (I) in clause (ii), by striking or at the end; (II) in clause (iii), by striking a subsequent year and inserting a subsequent fiscal year (before the second quarter of fiscal year 2024) ; (III) in clause (iii), by striking the period at the end and inserting ; and ; and (IV) by adding at the end the following: (iv) for the first quarter of fiscal year 2024, is equal to 25 percent of the aggregate amount specified in this subparagraph for the previous fiscal year increased by the annual percentage increase specified in section 1860D–2(b)(6) for the year involved. ; (D) by striking paragraph (4); and (E) by inserting after paragraph (3) the following new paragraph: (4) Increased amount beginning with second quarter of fiscal year 2024 (A) In general The amount specified in this paragraph for a State for the last 3 quarters of fiscal year 2024 or for a subsequent fiscal year is equal to the product of— (i) the aggregate amount specified in subparagraph (B) for such period or fiscal year; and (ii) the ratio (as estimated by the Secretary) of— (I) the number of individuals who are entitled to benefits under part A or enrolled under part B and who reside in the State (as determined by the Secretary based on the most recent available data before the beginning of the period or year); to (II) the sum of such numbers for all States that are subject to this subsection. (B) Aggregate amount The aggregate amount specified in this subparagraph for— (i) the last 3 quarters of fiscal year 2024, is equal to 3 times the amount specified in paragraph (3)(B)(iv); (ii) fiscal year 2025, is equal to 4 times the amount specified in paragraph (3)(B)(iv) increased by the same annual percentage increase as is applied to increases in the amounts applied for the fiscal year and State under section 1108(f)