added spend in balance calculation