Hey how are you?
I need your help.
I have data of one of our valve.
When its open the value is 1, and when its close the value is zero.
I want to calculate the time it was close - at each session.
for example:
Between the last opening and the opening after that - 41 minutes passed.
That is, the valve was closed for 41 minutes.
What code can I write to calculate this?
Thank you!