Percentage of Purity Calculation