; and (ii) in subclause (II)— (I) in the subclause heading, by inserting through fiscal year 2021 after succeeding fiscal years ; and (II) by inserting through fiscal year 2021 after each fiscal year thereafter ; (5) by striking paragraphs (7) and (8) and inserting the following: (7) State DSH allotments for fiscal years after fiscal year 2021 (A) In general Subject to subparagraphs (B), (C), and (D), beginning with fiscal year 2022, the DSH allotment for a State and fiscal year shall be the amount equal to the product of— (i) the State poverty ratio (as determined under subparagraph (E)(ii)) for the State and fiscal year; and (ii) the DSH allotment cap (as determined under subparagraph (E)(i)) for the fiscal year. (B) Phase-in of poverty-based formula (i) In general During the period of fiscal years described in clause (ii), the Secretary shall phase in the application of the determination of DSH allotments under subparagraph (A) in a manner that ensures that— (I) in no case is the DSH allotment for a State for a fiscal year during such period less than 90 percent of the DSH allotment for the State for the previous fiscal year (without regard to whether the State used the full amount of the DSH allotment for the previous fiscal year); and (II) the total amount of DSH allotments made to all States for any fiscal year during such period does not exceed the DSH allotment cap determined for the fiscal year under subparagraph (E)(i). (ii) Phase-in period The period of fiscal years described in this clause is the period that begins with fiscal year 2022 and ends with— (I) fiscal year 2031