Add functionality that automatically updates a task’s due date to the actual completion date when its status changes to “Done” or when the task is checked off.