Trade apartments for dream home, avoid taxes

Five-year rule applies