as @pankushri rightly pointed out, you have to multiply the price and qty and calculate.
Profit = Sell value - Buy value
Profit calculation for taxation purpose using the principle of “First In First Out”
If you follow the same for normal calculation it will also be helpful at the time of tax calculation.
that’s first in first out…
to calculate profit u need to deduct the shares first bought first from the sell price…
so 52.8150-(5083.8+100*70.5) for -3320
same way for the next one