Deductions & credits

Just wanted to be sure this is correct, as I have a similar situation.  We had around $61k worth of structural repairs done that insurance fully covered, so there was nothing to deduct during the life of the rental.  Technically, this made the foundation better than new, so now that we sold it, are you saying I can add $61k to my basis to help with the tax on the sale last year?