So in our "Clients" module, in each client's page, we have a field that reflects the date they were most recently visited.
We use this to calculate the number of days since their last visit, and then categorize them into "< 30 days ago since visit", "31-60 days ago since visit", etc, and then deliver this info to our sales reps' home pages through the Analytics module.
- If(
- Tonumber(${Clients.Date of Most Recent Visit})==0,
- 2000,
- If(Tonumber(${Clients.Mass update})==0,Datecomp(Now(),${Clients.Date of Most Recent Visit})/1440,
- Datecomp(Now(),${Clients.Date of Most Recent Visit})/1440)
- )
However, when the "Date of Most Recent Visit" field is blank, this function always returns us 0. Formula return type for this is set to 0.

Moderation Update (April 2026):