A geofencing algorithm fit for supply chain management