calendar.getActualMaximum(Calendar.DAY_OF_MONTH)
dovrebbe andare