Throughput Time to nth occurence of activity

Hi everyone,

I’m having some trouble finding out how to implement a throughput time KPI.
How do i calculate, for example, the throughput time from the first occurence of an activity to the second occurence of another activity?

The goal with this would be to compare activity changes and check which take the most time.

Thanks a lot in advance!