How to trigger status change in the future

How do I use cron tu change status in some days in the future, leads say 30 days?

The cron task should be run every day. And the script should check how many days passed. If the required date is reached, change order status