You mean something like:?

=IF(OR(K8="",X8=""),"",NETWORKDAYS(K8,J8)-SIGN(NETWORKDAYS(K8,J8))+NETWORKDAYS (N8,X8)-SIGN(NETWORKDAYS(N8,X8)))