Esempio n. 1
0
        public virtual dynamic CompoundInterestMethod(double principal, double rate, int time, double year)
        {
            // (1 + r/n)
            double body = 1 + _IMaths.Divide(rate, time);
            // nt
            double exponent = _IMaths.Multiply2No(time, year);

            // p(1+r/n)^nt
            return(principal * Math.Pow(body, exponent));
        }