Profit is the difference between expense and income. Just subtract the income from the income and you will make a profit. The profit should be positive. In the performance of any financial transactions, it happens that a certain commission is withheld, this must also be taken into account in the expenditure graph.
In the language of economics we say that one is cost price which is your buying price and another is selling price, if we subtract cost price from selling price then it will give you profit. On the other hand if we subtract selling price from cost price then it is a clear loss. In order to get rid of loss or other problems we must learn first and if we obey all the basic rules and work on principles then there is nothing to worry about and you will get your profit from any investment.