brickwalls
08-26-03, 22:22
| Hi all, I am given a list of equipment outages that contain the EVENT_TIME & END_TIME (event durations are recorded if they are greater than 3 min and above, but can last for days). This equipment has two modes of opperation "day" [07:00>19:00] & "Night" [19:00>07:00]. (The night mode spans two dates). I have to calculate the day, night and total duration in "outage minutes" either MS Excel or Access. Has anyone done this or similar calculations out there, and wishes to share their clearly superior acumen please respond. Raw data is csv in Euro date format (swap if U like) eg1,23/07/2003 08:12,23/07/2003 08:59 eg2,23/07/2003 12:22,23/07/2003 03:59 eg3,24/07/2003 12:00,01/08/2003 17:00 eg4,25/07/2003 01:00,27/07/2003 07:20 eg1 => 47m day, 0m night, 47m total eg2 => 398m day, 539m night, 937m total Hvae considered a lookup command to a table that contains the standard durations "between" the excess bits of number of full day & night outages ie:eg3 has 6 full days outage + bits on either end. eg3 excess of 420min day + (8*720min night) + (7*720min day) + excess 600min of day = 11820 |