public double CalculateSimpleInterest()
 {
     if (_festival.Equals(Festival.HOLI))
     {
         return((_principle * _year * 0.08) / 100);
     }
     if (_festival.Equals(Festival.NEWYEAR))
     {
         return((_principle * _year * 0.95) / 100);
     }
     return((_principle * _year * 0.7) / 100);
 }
示例#2
0
 public double CalculateSimpleInterest()
 {
     if (Festival.Equals(FestivalType.HOLI))
     {
         return(Amount + (_principle * HOLI_RATE * _years / 100));
     }
     else if (Festival.Equals(FestivalType.DIWALI))
     {
         return(Amount + (_principle * DIWALI_RATE * _years / 100));
     }
     else
     {
         return(Amount + (_principle * NORMAL_RATE * _years / 100));
     }
 }
        public double CalculateSimpleInterest()
        {
            if (Festival.Equals(FestivalType.NORMAL))
            {
                Rate = 0.07;
            }
            if (Festival.Equals(FestivalType.HOLI))
            {
                Rate = 0.08;
            }
            if (Festival.Equals(FestivalType.NEWYEAR))
            {
                Rate = 0.09;
            }

            return((Principal * Year * Rate) / 100);
        }