If I bought my house for 110k and sold for 150k and lived for less then year would I pay capital gains? And if yes would buying other house take away tax? And how long