Small fix in calculate hours