when are you supposed to invest in a house?