Hobbies & Collections

How to verify charge time from a start and stop log

A fictional charge log shows a complete start and stop pair crossing midnight for 30 minutes.

The fictional log supports 30 minutes of charging time. A second sequence has repeated starts and a third is still open. Keep both visible alongside the subtotal.

Fictional records

Events
EventDeviceTimestampMarker
E1D12026-11-26 23:501
E2D12026-11-27 00:200
E3D12026-11-27 01:001
E4D12026-11-27 01:101
E5D12026-11-27 01:300
E6D22026-11-27 02:001

What to check

  1. Confirm what start and stop markers mean in your source. This example uses 1 and 0.
  2. Keep dated timestamps, a declared time zone, device ID and event ID. Sort by device and time. Review tied events when their order is unknown.
  3. Count one start followed by one stop for the same device. Close a repeated-start sequence at its next stop for review and keep all of its minutes out of the verified subtotal.

Worked result

Events!C2:C3 supplies 30 minutes. Events!A4:D6 remains ambiguous and row 7 is open. For a local-day report, split the complete interval into 10 minutes before midnight and 20 after midnight.

Try it in Jolene.pro

Sources

Leave a comment