I have a large df of detection data, and I am trying to calculate the duration of time the tags were detected on any given day for each tag. I have code worked out to determine