Stability of motion during a finite time interval