Do I have to depart on the last day of the activity, even if it goes until 6 p.m.?

No, you can get reimbursed for an additional overnight stay if your activity extends into the afternoon.