Hi Lavik17,
Lag is useful for this application, but you need to use it a couple of times. Note that Dif() takes the difference between the current row and a "lag" row. For example, above you calculate :Time - Lag(:Time). That is the same as Dif(:Time).
Here is an example you can run with JMP sample data. The table just lists a sequence of years, but it will work the same for a time column.
dt = Open("$SAMPLE_DATA/Time Series/SeriesQ.jmp");
dt << New Column("CumTimeYear", Formula(
If( Row() > 1,
Lag( :CumTimeYear ) + Dif( :Year )
, // else first row
0
)
));