parse formula