# PNL MANUAL CALCULATION

I am trying to manually calculate the NLP and ROE, according to the Binance formula it is as follows:

Initial Margin = Quantity * Entry Price * IMR
IMR = 1 / leverage
PnL:

Long = (Exit Price - Entry Price) * Quantity
Short = (Entry Price - Exit Price) * Quantity

ROE% = PnL / Initial Margin = side * (1 - entry price / exit price) / IMR
Target price:

Long target price = entry price * (ROE% / leverage + 1)
Short target price = entry price * (1 - ROE% / leverage)

Could you please tell me where I get the Exit Price?

Best regards,

Orlando gautier

What is the mean of ( side ) and (=) before it.
I tried but I guess there is a problem

ROE% = PnL / Initial Margin = side * (1 - entry price / exit price) / IMR

The exit price would be the mark price.

ROE% = PnL / Initial Margin = side * (1 - entry price / exit price) / IMR

This formula is wrong.

side * (1 - entry price / exit price) / IMR ----> side * (exit price / entry price - 1) / IMR

The exit price is the price at which your position gets closed, if you call it at market price then use the price at which your position got sold otherwise use the price at which your TP/SL is placed.
If you want to calculate it continuously and are too disturbed by the name `exit price`, then this resource might help you understand using a different naming approach.