Do you mean the two-year period for the home sale exclusion?
You can exclude up to $250,000 ($500,000 if married) of gain from the sale of your primary residence if you owned and occupied your home for at least two years out of the five years prior to its date of sale.
You may take the exclusion only once during a 2-year period. You will qualify if you bought on 21 April 2020 and sold on 21 April 2022.
To qualify for the home sale exclusion, generally, you must live in the home for at least 24 months (730 days) out of the last five years.