I am trying to find a way to find all additions...

lets say we start at the value 0.

someome add +190 sec

then add +260 sec

then +2 760 sec

then +17 205 sec

then + 100 sec

Would there be a way to revert changes by changes ?

please note that at each iteration we should store always the same number of parameters.

If we stored per example

(START VALUE, SUM VALUE, LAST ADDITION #, X1, X2, X3,...,Xn?)

0 , 20515, 100, X1, X2, X3,...,Xn?)

With these values, find some math operations to revert to

0 , 20415, 17 205, Y1, Y2, Y3,...,Yn?)

With these values, find some math operations to revert to

0 , 3 210, 2 760, Z1, Z2, Z3, ... , Zn?)

...

...

and so on until

0 , 0, 0, 0, 0, 0, ... , 0)