I have never found a easy way to do date math, but this is what I use.
I basically convert all of the time to minutes.
the field with the times are [starttime] & [endtime]
Use these fields in a query
starthours:=Format$([starttime],"hh",0,0)
endhours:=Format$([endtime],"hh",0,0)...