Remaining Time Prediction for Processes with Inter-case Dynamics