R = 100;
i = 9/100; n = 5;
w_R_0 = R*(1 - (1 + i)^-n)/i
w_R_n = w_R_0*(1 + i)^n