Wild guess, but you might need to escape the parenthesis and quotation characters.
If I'm correct, calibre is interpreting these as programming instructions for how it should process the equation. Not as output instructions for the plugboard.
Of course I could also be totally wrong.