What is exactly the problem? Is the value produced wrong? This may be a result of too complex expression (division, multiplication, etc.). You may try to divide the single expression in to several simpler ones. Also you may try to use parenthesis to explicitly enforce order of operation execution.
If that is resolved then BODMAS- Brackets Of Division Multiplication Addition Subtraction - is the order that in (hopefully) followed by the compiler or user...
As long as I don't how the original formula looks like i can't suggest a solution.
So, Dear Ayman Yousef. Please use your preferred office equation editor and tell us what actually are you going to implement. If you want an answer formulate your question as precisely as possible.