formulas for wp doctor