Setting overtime in Calendar isn't reflected in the Tasks I've set up

I have Calendar set up until the end of the year, for daily 9-5 work schedules. On a specific day, 10/14th, I have overtime set from 5pm - 9pm.

When I switch back to Tasks and select either a Group or a Task within that group and try to extend the time (by dragging the blue line) past 5:00pm on 10/14, the time jumps from 10/14 5;00 p.m. to 10/15 6:00 a.m. Because I have Overtime set in Calendar, I expected that when I extended the time (in Group and/or Task) that the time would reflect the Overtime I set in Calendar.

I hope that makes sense.

Also, it’s strange to me that although I have the Calendar set for 9-5 that when I manually drag the task bar it should start the next day at 6:00am.

What have I done wrong in setting this up?

Thanks for any help you can give me,