To calculate the duration of the shift, you need to subtract the clock-in time from the clock-out time.
In this case, the shift worker clocked in at 1730 hours (5:30 PM) and clocked out at 0330 hours (3:30 AM). However, since the clock is based on a 24-hour format, it's necessary to consider that the clock-out time of 0330 hours actually refers to the next day.
To calculate the duration of the shift, you can perform the following steps:
1. Calculate the duration until midnight (0000 hours) on the same day:
- The time between 1730 hours and 0000 hours is 6 hours and 30 minutes (1730 - 0000 = 6:30 PM to 12:00 AM).
2. Calculate the duration from midnight (0000 hours) to the clock-out time:
- The time between 0000 hours and 0330 hours is 3 hours and 30 minutes (12:00 AM to 3:30 AM).
3. Add the durations from step 1 and step 2 to find the total duration of the shift:
- 6 hours and 30 minutes + 3 hours and 30 minutes = 10 hours.
Therefore, the duration of the shift was 10 hours.