Note: Explain in detail how profit and loss is calculated along with steps to track.
Follow the given steps: