Fix error in calculation for actualDepositPeriod

This commit is contained in:
percy ashu
2021-09-22 20:06:37 +08:00
committed by Petri Tuomola
parent 8146a7399c
commit 4aff4242b5
@@ -219,7 +219,7 @@ public class DepositTermDetail {
actualDepositPeriod = Math.toIntExact(ChronoUnit.MONTHS.between(periodStartDate, periodEndDate));
break;
case YEARS:
actualDepositPeriod = Math.toIntExact(ChronoUnit.YEARS.between(periodStartDate, periodStartDate));
actualDepositPeriod = Math.toIntExact(ChronoUnit.YEARS.between(periodStartDate, periodEndDate));
break;
case INVALID:
actualDepositPeriod = 0;// default value