need help with a formula field

need help with a formula field

Hello, I have the following two formulas in a field

I want to run the first one if the field titled Side = Long
I want to run the other one if the field titled Side = Short

Here are the two formulas, how would i get this formula written correctly?

((input.Closed_Price - input.Entry) * input.Size * input.Leverage) / input.Entry * 10 + "%"

((input.Entry - input.Closed_Price) * input.Size * input.Leverage) / input.Entry *10 + "%"


Thank You!