Calculate and print deposits and withdrawals