there's a function to use in Queries called DateDiff().
DateDiff («interval», «date1», «date2», «firstweekday», «firstweek»)
for intervals you put the letter corresponding to the format. "d" for days., "w" for weeks. and so forth. (Bust use quotations.)