I sold a 2nd home. Can I deduct cost of home updates to meet code and get a Certificate of Occupancy that was required in order to sell it?