How long does a soldier stay at war?

as long as they can manage and they can fight or else if they injured someone will help them to get away from the place where happened .