be subtracted from the State's DSH reserve amount for such year and shall not be available to the State in subsequent fiscal years. (III) Rule of application In the case of an increase to a State's DSH allotment for a fiscal year that is less than the State's DSH reserve amount for such year, the Secretary shall apply subclause (II) in a manner that maximizes the DSH reserve amount that will remain available to the State in subsequent fiscal years. (v) Disregard of adjustments Any increase or reduction under this subparagraph to the DSH allotment of a State for a fiscal year shall be disregarded when otherwise determining State DSH allotments under this paragraph. (D) Treatment of waivers (i) In general Subject to clause (ii), with respect to a State and a fiscal year, if the State has in effect on the date of enactment of the SAFE Hospitals Act of 2018 a statewide waiver of requirements of this title under section 1115 or other law and any part of the fiscal year occurs during the period of the waiver (as approved as of such date), the DSH allotment determined under this paragraph for such State and fiscal year shall not be less than the DSH allotment that would have been determined for such State and fiscal year under this section as in effect on the day before the date of enactment of the SAFE Hospitals Act of 2018 , reduced, in the case of each of fiscal years 2022 through 2025, by the amount of the State's share of the reductions which would have been applicable for the fiscal year under paragraph (7) of this subsection (as so in effect), as estimated by the Secretary. (ii) Total allotments not to exceed DSH allotment cap The Secretary shall apply this subparagraph in such a manner that the total amount of DSH allotments determined for all States for a fiscal year under this paragraph does not exceed DSH allotment cap determined for the fiscal year under subparagraph (E)(i). (iii) Nonapplication Clause (i) shall not apply— (I) with respect to a State that has in effect a waiver described in such clause if