Calculates process's timeRemaining