Driving and rest periods for trucks