public static Date getExpirationDate(Integer afterDays) {
        Date date = new Date();
        Calendar cal = Calendar.getInstance();
        cal.setTime(date);
        cal.add(Calendar.DATE, afterDays);
        return cal.getTime();
    }
Get the expiration date from the current time.

@param afterDays expires after days
@return expiration date
inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/util/DateUtils.java