Had this happen to me about a month ago. 4:30am show did 3 legs and broke down at the outstation around 10am. Cancelled the rest of the day held us until 4-5pm for the next flight in. Deadhead back to the hub, then to the overnight finishing around 7:30-8pm. Still had barely 10hrs left by the time we got in so it was legal. Not fun.