shall not be considered to be unlawfully present in the United States during the period described in subsection (d). (3) Specific authority (A) In general With respect to any alien whose immigration status, employment authorization, or other authorized period of stay has expired or will expire during the period described in subsection (d), during the one-year period beginning on the date of the enactment of this title, or during both such periods, the Secretary of Homeland Security shall automatically extend such status, authorization, or period of stay until the date that is 90 days after the last day of whichever of such periods ends later. (B) Exception If the status, authorization, or period of stay referred to in subparagraph (A) is based on a grant of deferred action, or a grant of temporary protected status under section 244 of the Immigration and Nationality Act ( 8 U.S.C. 1254a ), the extension under such subparagraph shall be for a period not less than the period for which deferred action or temporary protected status originally was granted by the Secretary of Homeland Security. (b) Immigrant visas (1) Extension of visa expiration Notwithstanding the limitations under section 221(c) of the Immigration and Nationality Act ( 8 U.S.C. 1201(c) ), in the case of any immigrant visa issued to an alien that expires or expired during the period described in subsection (d), the period of validity of the visa is extended until the date that is 90 days after the end of such period. (2) Rollover of unused visas (A) In general For fiscal years 2021 and 2022, the worldwide level of family-sponsored immigrants under subsection (c) of section 201 of the Immigration and Nationality Act ( 8 U.S.C. 1151 ), the worldwide level of employment-based immigrants under subsection (d) of such section, and the worldwide level of diversity immigrants under subsection (e) of such section shall each be increased by the number computed under subparagraph (B) with respect to each of such worldwide levels. (B) Computation of increase