Officials in the city say it costs about $31,000 on average. Many of Chicago’s peers are spending less than half that.