For an M/M/1/4 queue with $\lambda=7,\mu=8,K=4$ and $\rho=7/8$, $$L=\frac{\rho}{1-\rho}-\frac{(K+1)\rho^{K+1}}{1-\rho^{K+1}}$$
I don't understand how the expression for $L$ is derived here. I know the first term in there $(\frac{\rho}{1-\rho})$ refers to $L$ in an M/M/1 queue with infinite capacity but the second term $(\frac{(K+1)\rho^{K+1}}{1-\rho^{K+1}})$ is throwing me off. I think it's something to do with the fact that $P_{(K+1)}=0$ but I'm not sure how it's derived.