Clean up pending_hours calculation