It’s a bit overkill, maybe.
If I want to know the normalized distance from my blueprint to an actor:
Then to calculate
And if you want it to be 1 by the time it gets to the cube, it’s just 1 - this.