In the most basic form you'd want something similar to:
1) create a Date attribute with enrichment Capture Date with a condition for when a purchase is made
2) create a Metric with enrichment Set Difference Between Two Dates that counts the number of days between the above Date attribute and the current date
3) create Audience whose condition is when the Metric above is greater than or equal to 30
Hope you find this helpful!