Add kcode formula