Refactored total hours for checking hours