Help with writing equation after solve

Hi all

I am trying to update variable D(t) using equation D(t+1)=(1+n)*G(t)+(1+r)*D(t) so that D(t+2)=(1+n)*G(t) +(1+r) *((1+n)*G(t)+(1+r)*D(t))

Thanks for your help

set t /0*300/
;
scalar
r /0.05/
n /0.0148/
;
Variables
G(t)
D(t);

G.fx(t)=0.5;
D.fx('0')=0.01;


D.fx(t+1)=(1+n)*G.l(t)+(1+r)*D.l(t);
display D.l