Calculating time lapse specific to another column variable.

Great! Come back with a new post with a reproducible example, called a reprex if you get stuck on implementing your calculation.