for simple interest the equation is
y = 2000(1 + 0.045x) because you would start with a face value of $2000 and then earn interest of 4.5% = 0.045
then for compound interest you can take
y = 2000(1.04)^x assuming that it compounds annually
so you could use those by plugging in values of "x" for years and then seeing what the end value in the account is after calculation