Sonja is considering the purchase and renovation of an old building. She has heard about the tax credit for rehabilitation expenditures, but Sonja does not know the specific rules applicable to the credit. Explain the most important and relevant provisions for her.