for loop usage

used for loop to count increments of 1000 miles