formula calculation and input completed.

only need to add more formulas. currently only one formula is supported