How is my adjusted tax basis determined for computing gain or loss?