// create array of start times
int[] times = new int[freq1];
for(int j = 0; j < freq1; j++) {
times[j] = startHr+freq2*j;
// create schedule item
daily[j] = new ScheduleItem();
daily[j].setSortTime(startTimeInMin+freq2*j*60);
daily[j].setTime(times[j] + ":" + m.getStartTimeMin());
daily[j].setName(m.getName());
}
// add schedule items to correct days