update the "createNewDeposit" method (calculation)