Calculating percentage of total purchases