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

lets say we start at the value 0.

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)

2. ## my try... example 2

an example I had try is the following :

SUM LAST
0 0 0 0
180 180 0 0

480 300 0.6 0.3750
0.6 is gotten from 180/300+0(value from row before)
0.3750 is gotten from 180/480+0(value from row before)

1080 600 1.4 0.8194
1.4 is gotten from 480/600+0.6(value from row before)
0.8194 is gotten from 480/1080+0.3750(value from row before)

in order to revert i would do...
with :
1080 600 1.4 0.8194

the following maths
1080 = 480

abs(480/1080 - 0.8194) = 0.3750

1.4 - (480/600 = 0.8) = 0.6

480 - ( 480*0.3750 = 180 ) = 300

this gives me

480 300 0.6 0.3750

then i do the same calculs as before...
but if I ahd a 5th row it doesn't seems to works..