Contour interval from index lines
With the example inputs, the result is 20 m.
Map distances use horizontal ground measurements unless the tool asks for slope distance. Check the scale and contour interval in the map legend before replacing the example values.