Calculate time from start to stop with having multiple entry in a day(OSlsoft-Pi data source)


How do I calculate the total time from productive time until it stop and also the time it stop to being productive again