transformed inefficient code
dynamically convert amount in new expense