Formula generation in UI (initial version).