private static boolean validateAmount(double duration) {

        if (duration > MIN_LOAN_AMOUNT && duration < MAX_LOAN_AMOUNT) {
            return true;
        } else {
            throw new IllegalArgumentException("Loan amount should be withing " + MIN_LOAN_AMOUNT + " and "+ MAX_LOAN_AMOUNT);
        }
    }