i=\sqrt[n]{\frac{{S}_n}{P}}-1;