code: public int getRemainingDays(String startDate, String endDate, Date currentDate) throws java.text.ParseException {
  		DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
  
  		Calendar iterationEndDate = Calendar.getInstance();
  		iterationEndDate.setTime(dateFormat.parse(endDate));
  
  		Calendar iterationStartDate = Calendar.getInstance();
  		iterationStartDate.setTime(dateFormat.parse(startDate));
  
  		Calendar currentCalendarDate = Calendar.getInstance();
  		currentCalendarDate.setTime(currentDate);
  
  		int remainingDays = 0;
  
  		if ((iterationStartDate.compareTo(currentCalendarDate) == 1)
  				|| (iterationEndDate.compareTo(currentCalendarDate) == -1)) {
  
  			return remainingDays;
  		}
  
  		while (iterationEndDate.compareTo(currentCalendarDate) == 1) {
  			if ((currentCalendarDate.get(Calendar.DAY_OF_WEEK) != Calendar.SATURDAY)
  					&& (currentCalendarDate.get(Calendar.DAY_OF_WEEK) != Calendar.SUNDAY)) {
  				++remainingDays;
  			}
  			currentCalendarDate.add(Calendar.DAY_OF_MONTH, 1);
  		}
  
  		return remainingDays;
  	}
docs: Helper method to find the remaining days