total hours worked calculation works