Implemented calculation for account balance