The Forex formula is the following (Lots * Contract Size/Leverage)* Open Price. The result is always calculated on the base currency of the currency pair and then the system converts it to the account currency.