It’s done by latestArrTimeAtNextAct:
latestArrTimeAtNextAct = states.getActivityState(nextAct, iFacts.getNewVehicle(), InternalStates.LATEST_OPERATION_START_TIME, Double.class);
This is stored in UpdateVehicleDependentPracticalTimeWindows:
stateManager.putInternalTypedActivityState(activity, vehicle, InternalStates.LATEST_OPERATION_START_TIME, latestArrivalTime);
If you check the calculation of latestArrivalTime, you will see it covers what you said.
Best regards,
He