Hi Alina,
I have handled this requirement in the below document.
We do this by creating a constant and specifying the start time and end time for OFF days in the constant.
Late Coming, Early Going and Unauthorized absence
You may use a similar approach for your solution.
Regards,
Vivek Barnwal