complete bank calculation