how long does it take to recover from job loss