private int calculateUnitIncrement(Rectangle visibleRect, int orientation, int direction) {
		int hNew = 10, hTask = 10, increment = 0, currentPosition;
		
		hNew  = newTaskPanel.getHeight();
		if (guiTaskPanelList != null) hTask = guiTaskPanelList.get(0).panel.getHeight();
		
		currentPosition = visibleRect.y;
		
		if (newTaskPanel.isVisible()) {
			if (currentPosition <= hNew) {
				if (direction < 0) increment = currentPosition;
				else {
					increment = hNew - currentPosition;
				}
			} else {
				currentPosition = currentPosition - hNew;
				increment = currentPosition - (currentPosition / hTask) * hTask;
				if (direction > 0) increment = hTask - increment;
			}
		} else {
			increment = currentPosition - (currentPosition / hTask) * hTask;
			if (direction > 0) increment = hTask - increment;
		}
		if (increment == 0) increment = hTask;
		
		return increment;
	}