HUD - Get Actors in Selection Rectangle - Any way to improve on it ?

I’m trying something different but I need some help.
I found this formula and I thought to implement it in blueprint but i’m failing. Here is the formula:

(From: algorithm - Finding whether a point lies inside a rectangle or not - Stack Overflow)

and here is my blueprint interpretation:

What am I doing wrong ?