You have to calculate not only distance, but direction as well. Here’s what I came up with:
Here’s the [result][2].
Hope this helps.