the formula for forex trading