Hi @misko ,
I normally use this function - INTCK when comparing dates. For example, I have 2 dates: TODAY_calc and DATE_calc. I can subtract the DATE_calc from TODAY_calc and see if the difference is within 7 days or more than that. Check the value first using test mode to ensure your comparing the right values.
intck('day', <<calculatedDataItems.TODAY_calc>>, <<calculatedDataItems.DATE_calc>>)
Then use an IIF statement to add in your business logic.
iif(intck('day', <<calculatedDataItems.TODAY_calc>>, <<calculatedDataItems.LEADACTIVITYDATE_calc>>) < 7,
<<value if true>> ,<<value if false>>)
I hope this can help you. 🙂