Calculating the Value of Coins