The formula for compound interest is:
[tex]I = P(1 + \frac{r}{n} ) ^{nt} [/tex]
Where P is the amount you start with, r is the rate, t is the time, and n is the number of times the interest is calculated per year. So for you, this would look like:
[tex]I = 20000(1 + \frac{0.05}{1}) ^{1*7} [/tex]
Hope it helps!