You have until the tax deadline of the following year to make your contribution. That means you can contribute to a 2021 HSA until April 15, 2022.