Stock purchase profit or loss