windows and patio door

I installed new windows and a patio door in June can I take a credit under the new law? Also do I have to take it this year or can I take it next year?