k=% of the initial investment per year
r=k/100 dollars per year per dollar in your initial investment.
f(x)=rbx+b;