I have a data which looks like this
<tbody>
</tbody>
The data represent a work flow of files where the file starts at date 9/25/2012 and time 11:22:45, then the next step happen in date 9/25/2012 and time 11:48:31 and continue like this until the file is closed.
I want to create a new column to calculate the time spent in each step to like this
<tbody>
</tbody>
So I want to calculate the time spent in step 2 through calculating the difference between time in step 3 and 2.
step_ID | Action date | Action time |
1 | 9/25/2012 | 11:22:45 |
2 | 9/25/2012 | 11:48:31 |
3 | 9/26/2012 | 12:27:52 |
4 | 9/26/2012 | 13:13:02 |
<tbody>
</tbody>
The data represent a work flow of files where the file starts at date 9/25/2012 and time 11:22:45, then the next step happen in date 9/25/2012 and time 11:48:31 and continue like this until the file is closed.
I want to create a new column to calculate the time spent in each step to like this
step_ID | Action date | Action time | Calculated time |
2 | 9/25/2012 | 11:48:31 | (9/26/2012 12:27:52) – (9/25/2012 12:27:52) |
<tbody>
</tbody>
So I want to calculate the time spent in step 2 through calculating the difference between time in step 3 and 2.