crime rate function