determine the minimum (safe) gap between vehicles and the capacity