Average Density Formula