Decrease total timeline length

So I accidentally did something that made the total timeline length way to long. How do i decrease it?

Picture for illustration:

The solution was very simple. Deselect your current event and select it again.