How to execute the code in the code field from Server Script

I have define a field of type code in a doctype.
In the document i have defined a formula.

I want to evaluate the formula to obtain the result using server script.
Any Idea.