How to calculate p/l if i buy again after stop loss hit

i bought HDFC 3 units @ 1777.4 in cash segment.
after half an hour my stop loss got hit @ 1772.45.
after hitting stop loss price started to rise and i bought 3 units again @ 1777.5.
it was showing profit of 18.45rs only with .63% gain, see this image

according to my calculation profit should be 33.59 rs
1777.45 * .63% = 11.19 per unit, 11.19 * 3 unit = 33.59 rs
please help me if i am wrong in this calculation.

1st trade: Loss = (1777.40 - 1772.45)*3 = Rs.14.85

2nd trade: Profit = (1788.60 - 1777.45)*3 = Rs.33.45

Net profit = Rs.33.45 - Rs.14.85 = Rs.18.6

All your profits and losses get added to the same row depending on the product type based on whether it’s CNC, MIS or others.
So all the profits and losses for your HDFC CNC trades get added to the same row in your Kite positions but it shows only the current quantity you are trading.

Hi sir,

If my first profit is 10 rs (buy at 70, sell at 80).
Same day, after seeing rising, bought at 81 and sold at 79.

So, total profit would be (10 - 2 = 8) correct ? same applies to Futures trade ?