Deductions & credits

Thank you for your answer.  Do I understand this correctly:  our windows replacement was over $22,000 but we would only get a $200 credit. This is a lifetime max.  However, there is a $500 maximum lifetime credit, so we could upgrade another feature (perhaps doors) to use up some of the remaining $500 maximum.

Correct?

Thank you!