Change hours to integer