add a formula for qxmpp