Profit is the difference between the total amount paid (including taxes and charges) and the final amount earned. Similarly, the loss is the sum of the total amount paid (including taxes and charges) and the final loss amount. Therefore, it's essential to consider brokerage fees, STT, and other costs when calculating your trading profit or loss.