It's not really the distance.....it's how well you worked up to that level of activity and how your body responded. If you hurt afterwards, it was too much too soon. And if you didn't work up to that distance (and twice in one day!), then that's likely the reason for pain afterwards. Try to remember that slow and steady progress is best with activity increases.