This one has been bothering me for awhile. I have all the pieces (I think) that work individually to create the output I\'m looking for (calculate a profit and loss for a stock