Ok, here is what I got...seems to be working however I don't know if it is the most efficient
Variables needed:
StartDT = MM/DD/YY HH:MM (ex 4/15/10 8:00)
EndDT = MM/DD/YY HH:MM (ex 4/17/10 20:00)
StartTheDay = HH:MM (ex 8:00)
EndTheDay = HH:MM (ex 20:00)
StartDate = INT(StartDT) (ex 40283)
EndDate = INT(EndDT) (ex 40285)
ModStartDT = StartDT-1*INT(StartDT/1) (ex .33333)
ModEndDT = =EndTime-1*INT(EndTime/1) (ex .833333)
Solution
(answer = 36 for above example)
=(DAYS360(StartDate, EndDate) - 1) * (24 * (EndTheDay - StartTheDay)) + IF((24*(ModStartDT-StartTheDay))>0,IF((24*(EndTheDay-ModStartDT))<0,0,(24*(EndTheDay-ModStartDT))),12) + IF((24*(ModEndDT-StartTheDay))<0,0,IF((24*(ModEndDT-StartTheDay))>12,12,(24*(ModEndDT-StartTheDay))))
Bookmarks