How to setup automation for due dates

How to setup automation for due dates