I am really stuck with a customer request (in two places), so am enlisting the wisdom of the crowd...
My input is a table with timestamps and on/off events, for certain e