dont know anything about employee/hr module working,
but if you want to calculate the time difference, check this post