Removed the var name and added onBeforeNoon and offBeforeNoon variables.
Deleted whole code, added totalHours variable.