Use math.round to calculate the density