How to calculate % made when backtesting

Hi, I’m having some problems when I have to calculate the percentage made when I take partials;
I’ve always done it in this way, but a friend of mine did it differently and got me in a lot of confusion :sweat_smile:

Btw I think I’m right because the math done in the image could be written as three different trades with three different take profits.
My question is: am I doing it wrong or am I correct?