I created an automation to log the date/time for every status change in a given project.
There are 4 status options:
* Todo
* In Progress
* On Hold (waiting for information from external source)
* Done
My goal is to calculate the hours spent actually doing the project, which would always have "In progress" as the start date. See screenshot below.

The tricky part is that the projects always have a back and forth between status: (...In progress -> On Hold -> In progress -> Done...)
Would it be possible to get the difference between "In Progress" and the next status?
I found this 5 year-old thread that tackles a similar problem, but it's not quite the same thing I'm trying to achieve here.
