"03:00:00 PM"-"07:00:00 AM" would work.
If you have a cell that shows the start time, Link that cell to the "07:00:00 AM" and link end time to "03:00:00 PM"
Assuming your start time is in A1 and end time is B1 the formula would be.
B1-A1 then if the times change the total hours will still pick up on it.