We have the following formula for calculating the future value ($FV$) of a deposit ($PV$) with an annual interest rate of $r\%$ compounded $m$ times per year for a total of $n$ times:
$$FV = PV\left(1 + \frac{r}{m}\right)^n.$$
In the example you linked we are given the following information: $PV = 5000$, $FV = 6000$, $m = 12$ and $n = 2.5 \times 12 = 30$. All that we need to find is $r$, the annual interest rate.
Plugging the known values into the formula:
$$6000 = 5000 \left( 1 + \frac{r}{12} \right)^{30}.$$
We need to solve for $r$ by rearranging this equation:
\begin{align}
r &= 12 \left( \sqrt[30]{\frac{6000}{5000}} - 1 \right) \\
&= 0.07315\ldots.
\end{align}
So the annual interest rate is approximately $7.32\%$.
The general formula for annual interest $r$ (which you can get by rearranging the original compound interest formula) is
$$r = m \left( \sqrt[n]{\frac{FV}{PV}} - 1\right).$$
Note that taking the $n$-th root of $FV/PV$ is the same as raising $FV/PV$ to the power of $1/n$.
$$C_n=C_0\cdot \left(1+\frac{i}{m} \right)^n$$
$m=12$ is the number of compoundings per year. $i$ is the nominal interest year. $C_0$ is the initial deposit. And $C_n$ is the deposit after $n$ months.
Thus your equation is $6000=5000\cdot \left(1+\frac{i}{12} \right)^{30}$. Solving for i.
$$i=12\cdot \left(\left(\frac{6}{5}\right)^{\frac1{30}}-1\right)=0.07315068...=7.32%$$
(rounded to two decimal places)
– callculus42 Aug 11 '22 at 18:16