Script to compare moving and elapsed time