To change the duration of an appointment, move the mouse to the top or bottom edge of the task and hold down the mouse and drag up or down: