Stock Profit and loss calculator