Transform to get difference between two dates in numeric form

Okay, see this post here for my thoughts on this in general (TL;DR - you likely want to look at more than just that one attribute) - Transform - Find Users' Last Activity Date (find latest date in array).

For your use case, you’ll want to find the latest date of all the relevant attributes, then do a dateCompare with now-30d as the secondDate. If the firstDate is less than second date, then return >30 days, otherwise return <30 days.