Shortcut for defer date based on due date

After I’ve given a task or a project a given due date, I’d like a shortcut that can look at that due date field and enter a defer date that is X days before the due date. Can anyone help me?
Sandy in Naples, FL