Does anyone know the rules on capital gains if house not occupied for 4 years but moved for work and now want to sell...was rented after not selling but now person wants to sell and not pay cap gains...also can they deduct costs updates like new carpet from profit/gain and realtor fees