set deferredDate to my offsetDatebyDays(current date, (the text returned of my dialog("This task doesn't have a defer date. " & return & "Today is " & date string of (current date) & "." & return & "How many days from today should this task be deferred?", defaultDefer, {"Cancel", "OK"})) as string)