I had almost 18 months off the bike, the first ride back was around 40 miles and I felt knackered. I increased the mileage week by week after a month I'd done a 100 km ride and after 10 weeks a 100 mile ride and I've lost just under a stone in weight.
Keep at it, the fitness soon comes back.