Hi Soumya, I can think of a few solutions: A) you could build your own codeunit to give a formula in text, the parameters, parse the formula and return the result… It is not easy… B) build a DLL that does this work and call it from cal. That way you can use other development tool, like delphi or VB that is easier to handle such cases and already has components that can do all the work for you. C) Use a dos program that calculates expressions and execute it giving the expression and its values… D) Use predefined formulas and in the OnValidate Routine of each field check which formula is active and execute pre-written code to do the calculation… I suggest the last solution, but if you want to have dynamic user defined formulas then you should use suggestion A or B.