Complexity of timeline-based planning