calculate Work Hours