"We spent $5k to replace the damage flooring. Can we deduct this as these were unlivable conditions ??"--->No you can't deduct the replacement cost of the home;however, your home improvements, complete flooring replacement, add to the basis of your home. When you sell your home, the amount of the sale that is taxable is decreased by the amount that you paid for the replacement and any money that you spent on home improvements.