Interrupt question for automated Crab Claw

Eibert_Draisma:
delay(distanceCm*distanceCm/20)

The bolded part is your interval. The blink without delay example compares time since to an interval. So in the example, you would set the interval to the bolded.