CALCULATE PURCHASE