Investors & landlords

If I cannot change the cost basis, where do I add in expenses we incurred while making repairs & improvements between the last day it was a rental and the day we sold it? We were also paying for utilities and HOA fees during that time.