Loop While Geometry Intentersection <1

I assume this is more than finding the correct radius but rather to find the distance from a specified point and to a curve/line? The loop-while node is a little tricky, have you had a look at the previous posts etc regarding the loopwhile node?