parse.formula function

Parse formula