Calculating closest store