Is there a way to calculate a percentage of the total purchase?