The requirement to setup overnight shift hours can be satisfied with the current Business hours calendar. Let me explain how to setup the shift timings from 5pm to 9am of the next day.
You can input the start time as 5pm, say on Monday. This is simple and straightforward. Now, the shift has to span across the Tuesday morning and ends at 9am. To set this up, select the end time on Monday as 12 am and then set 12am as the start of business hour on Tuesday. Now, we're all set to select the end time on Tuesday, ie. 9am.