How to calculate loss/profit of trades in EUR?

Some time ago I tested automated bot trading. Now I want to calculate loss and profit of all my trades in EUR. I have read all trades with https://api.binance.com/api/v3/myTrades api endpoint and stored this in a local database. Afterwards I got all relevant candlesticks to the trades. Now I’m unsure if I did it right.

My trades are all with BTC as quote currency. I multiplied the quoteQty with the BTCEUR price, doesn’t matter if buy or sell position. A little example should help to understand it better.

Is this the way it goes or need it differ between buy and sell position?