How to figure out the best time to buy a home, according to a mortgage analyst