What dates count for refinancing a home for a tax year?

If I refinanced in Jan '22, can I claim in '21 tax year or wait unitl '22 tax year?