Fix pending_hours to account for threads