a script to give a value of money exchanged