the cost of avoiding collision