I have a simple schema ID - DATETIME - STATUS
Pratically is a device. This device send me datetime and the status of a machine. I need to get/calculate the ON-OFF time of