adding generic Operator for formulas

Signed-off-by: greenTara <taraathan@gmail.com>