Why is the quantity bought different from the quantity sold? How to determine if I made a profit or a loss?