convert balance to number