public int getTimeIndex(Time time) {
		int index = -1;
		
		if (time.getIdTime() > -1) {
			index = times.indexOf(time);
		} else {
			for (Time t : times) {
				boolean actId = t.getIdActivity() == time.getIdActivity();
				boolean sTime = t.getStartTime().equals(time.getStartTime());
				boolean eTime = t.getEndTime().equals(time.getEndTime());
				boolean dur = t.getDuration() == time.getDuration();
				boolean desc = t.getDescription().equals(time.getDescription());
				
				if (actId == true && sTime == true && eTime == true && dur == true && desc == true) {
					index = times.indexOf(t);
					break;
				}
			}
		}
		
		return index;
	}