A default formula will only be computed when the document is created. If it computes to "" then it will remain like that until you manually change it. Put SendReminder := @Adjust(reminder;0;0;0;0;@ToNumber(zReminder);0); into your agent after the select statement.