Calculate math formul from text