public int GetNumberOfDays(Installment installment, IDateShiftPolicy shiftPolicy) { if (installment.Number == 1) { return(installment.ExpectedDate == installment.StartDate.AddMonths(1) ? 30 : (installment.ExpectedDate - installment.StartDate).Days); } return(30); }
public int GetNumberOfDays(Installment installment, IDateShiftPolicy shiftPolicy) { return (shiftPolicy.ShiftDate(installment.ExpectedDate) - shiftPolicy.ShiftDate(installment.StartDate)).Days; }
public DateTime GetNextRepaymentDate(DateTime date, IDateShiftPolicy shiftPolicy) { return shiftPolicy.ShiftDate(date.AddDays(1)); }
public int GetNumberOfDays(Installment installment, IDateShiftPolicy shiftPolicy) { if (installment.Number == 1) return installment.ExpectedDate == installment.StartDate.AddMonths(1) ? 30 : (installment.ExpectedDate - installment.StartDate).Days; return 30; }
public DateTime GetNextRepaymentDate(DateTime date, IDateShiftPolicy shiftPolicy) { return date.AddMonths(1); }
public DateTime GetNextRepaymentDate(DateTime date, IDateShiftPolicy shiftPolicy) { return(date.AddMonths(1)); }
public int GetNumberOfDays(Installment installment, IDateShiftPolicy shiftPolicy) { return((shiftPolicy.ShiftDate(installment.ExpectedDate) - shiftPolicy.ShiftDate(installment.StartDate)).Days); }
public DateTime GetNextRepaymentDate(DateTime date, IDateShiftPolicy shiftPolicy) { return(shiftPolicy.ShiftDate(date.AddDays(1))); }