public InterestResult calculateInterest(int pCantDias, AmountInterest interest)
        {
            InterestResult result = new InterestResult();

            double annualInterest = interest.AnnualInterest;

            decimal performance = Convert.ToDecimal(interest.Amount) * (Convert.ToDecimal(annualInterest) / 360) * (decimal)pCantDias;

            result.FinalBalance   = interest.Amount + performance;
            result.AnnualInterest = (float)annualInterest;
            result.InterestEarned = performance;

            return(result);
        }
 public override void setInterestTable(InterestTable interest)
 {
     _interestTable = (AmountInterest)interest;
 }