It's almost the optimal time to buy a home. Here's why