The credit applies for contributions made FOR the year. So if you are filing your 2020 tax return, you include contributions made FOR 2020. It does not include contributions made in 2020 but "for" 2019. But likewise, if you make any contributions "for" 2020 in the first few months of 2021, those would count.