Duration hour public holiday

How to ensure that when there is a public holiday instead of 7 a.m., it is 0 since not working? thanks in advance