I need to work out the difference in minutes between 2 times usually spread over 2 to 3 days, but I also need to exclude any of those minutes that come between 06:00 and 23:00 each day over that period.

For Example:

Start Date 3/1/2006 07:36
End Date 6/1/2006 19:00
Times to exclude 3/1/2006 06:00-23:00, 4/1/2006 06:00-23:00, 5/1/2006 06:00-23:00, 6/1/2006 06:00-23:00.

Can anyone help?