When is the Right Time to Buy Real Estate?