added total hours worked calculation