Confused with the timing

Hi everyone.
I am confused with the timing in dynare.
As in the simplest example in the user guide, there is one equatio “i=k-(1-delta)*k(-1)”. I wonder why can’t write “k(-1)=(1-delta)*k(-2)+i(-1)”, what decide a equation’s timing. Thanks a lot for your help.

You specify the timing in the way that results from the optimization problem at hand. The household in your example decides at time t on investment and faces the constraint

i=k-(1-delta)*k(-1)

i.e. that it has to take the capital stock of last period as given and by investing today decides on the capital stock at the end of the period (i.e. k)

Your second timing would imply that the constraint the household faces at time t only relates to past choices. This constraint would not even involve the investment chosen at time t.