how to calculate p size distribution