try different values of n in Isabella's expression. which value of n gives the distance to the last marker.