Capitalization of costs

Hi all. One aspect of the CPA exam that I a not confident with is the capitalization of costs. I know if a cost is used to improve or replace something, it is capitalized. If I remember correctly, sometimes costs are capitalized before the completion of a building and others are capitalized after technological feasibility has been established. My question is which costs are capitalized and when? Do you guys have any tips on how to keep track of it?