Tax credits for new windows installed in 2022

I installed new windows and patio door in June which I paid 30% upfront the remaining 70% is not due till March 2024.  My question is do I have to take the credit this year or can I wait till next year or 2024?