Calculate distance to monitoring server