Hours worked calculation