The way you set up the first equation, n_t will be predetermined. You can see that the variables on the right that determine it are all dated t-1. If you use that stock at the end of period timing timing, you do not need to define n as a predetermined_variables. If you were to use this, the timing would be shifted by Dynare, which is not what you want.