calculating the distance between two users for request active state