Get distance of partial path to target

Hey,

I would like to know if it is possible to get the distance from the end of a partial path to the actual target.
I tried to use the “Find Path to Location Synchronously” node and to check the first point of the path (which I found out is the nearest point to the target) with the target location to get the distance but it seems it is always near the target no matter if the path is partial or not.
I would appreciate any help in this topic no matter if it is a C++ or Blueprint solution

Cheers Henning