Howdy, and welcome to the board.
Is cell I3 in time, or is actually day and time (how it is normally entered into a cell). You may have to convert to serial numbers; hours would be fractions, and then use that as the basis for determining, and you would have to subtract the serial day to determine what part of the day it is.