docs: public static int getEndValue(Calendar calendar, int dateField) {
  		if(Calendar.DAY_OF_WEEK == dateField) {
  			return (calendar.getFirstDayOfWeek() + 6) % 7;
  		}
  		return calendar.getActualMaximum(dateField);
  	}