I think you can get at it by building out a transaction search and do:
Summary Criteria:
Maximum (date) is before today
Count (transactions) > 20
Standard Criteria:
Type = (for us, it'd be invoices)
Date = (relative) on or after 30 days ago
Main Line = Yes