Check format of formula.