The flu kept me off my bike for 3 weeks. When I got back on I was in horrible shape. Stuff that was easy 3 weeks ago was making my heart rate soar.
I don't know how long it takes to get back in shape. I guess it depends on how you work at it. As I age, I realize I'll get to a point where I'll never get back into some shape I was in before.