Hi,
The functionality already exists in Workfront. In the setup area of Workfront, under email and Automatic reminders, you can configure the system to send out a reminder at a set timeframe before the task is due to be completed. See below screenshot:
Hope that helps!
Best Regards,
Rich.