How to find profit and loss