Ejemplo n.º 1
0
        public decimal GetAccountYield(double fee, double balance)
        {
            var totalDays = CreationDate.Date.Subtract(DateTime.Now.Date).TotalDays;
            var result    = CalculationFutureValue.GetDailyProfit(fee, balance, totalDays);

            return(result == 0 ? (decimal)balance : result);
        }
Ejemplo n.º 2
0
        public void Return_Calc_Daily_Profit_Valid()
        {
            var result = CalculationFutureValue.GetDailyProfit(0.10, 7800.0, 35);

            Assert.Equal(8077.69M, result);
        }