Compiling a formula into a DLL gives you the benefit of encapsulating your code and optimizing calculation times.