In order to calculate the required margin for a particular trade, the following equation should be applied:
Lot Size x (Price x Contract Size) / Leverage.
For this example, the leverage is going to be 500 and the pair is going to be EURUSD.
1.00 x (1.18257 x 100,000) / 500
=236.51