class DateUtil {

    public static int getRemainingDays(String startDateString, int noDays) {
        Date endDate = getEndDate(startDateString, noDays);
        Calendar cal = Calendar.getInstance();
        cal.setTime(endDate);
        long remainingMills = cal.getTimeInMillis() - Calendar.getInstance().getTimeInMillis();
        long days = remainingMills / (24 * 60 * 60 * 1000);
        return Math.round(days);
    }

}