I found the solution for your problem over here so I added the following lines:
DECLARE @today Datetime = getdate()
DECLARE @NrDays int = ##NrDays:int?7##
...
and datediff(Day,CreationDate,@today) <= @NrDays
So this is my solution: Find unanswered questions by non-noob within last week