I'm interested in calculating in room time (this is for an operating room) between 5 pm and 7 pm. We're trying to figure out how often we use 12 ORs between these two time. Currently I have a column with "in room time" and "out of room time" . I want to know how many minutes a patient was in the room during that 5-7 pm window. Is there a way to do this?
Here is what I would like it to look like[TABLE="class: grid, width: 500"]
<TBODY>[TR]
[TD]Surgery date[/TD]
[TD]In Room Time[/TD]
[TD]OUt of Room Time[/TD]
[TD]Minutes between 5-7 pm[/TD]
[/TR]
[TR]
[TD]7/1/2013[/TD]
[TD]0700[/TD]
[TD]1659[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]7/1/2013[/TD]
[TD]1500[/TD]
[TD]1830[/TD]
[TD]90[/TD]
[/TR]
[TR]
[TD]7/1/2013[/TD]
[TD]1820[/TD]
[TD]2100[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]7/1/2013[/TD]
[TD]1859[/TD]
[TD]2130[/TD]
[TD]1[/TD]
[/TR]
</TBODY>[/TABLE]
Here is what I would like it to look like[TABLE="class: grid, width: 500"]
<TBODY>[TR]
[TD]Surgery date[/TD]
[TD]In Room Time[/TD]
[TD]OUt of Room Time[/TD]
[TD]Minutes between 5-7 pm[/TD]
[/TR]
[TR]
[TD]7/1/2013[/TD]
[TD]0700[/TD]
[TD]1659[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]7/1/2013[/TD]
[TD]1500[/TD]
[TD]1830[/TD]
[TD]90[/TD]
[/TR]
[TR]
[TD]7/1/2013[/TD]
[TD]1820[/TD]
[TD]2100[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]7/1/2013[/TD]
[TD]1859[/TD]
[TD]2130[/TD]
[TD]1[/TD]
[/TR]
</TBODY>[/TABLE]