To be fair the travel time was to the nearest starbase and not to their point of origin. At their max cruising speed of warp 9.2 it would still be over 4000 light years away.In Q Who the Enterprise was 7000 ly away and it would have taken them two and a half years.