Stock purchase profit and loss