Added functionality to calculate actual coins used to exchange sum