\(=\dfrac{xy\left(z-1\right)-y\left(z-1\right)-x\left(z-1\right)+\left(z-1\right)}{xy\left(z+1\right)+y\left(z+1\right)-x\left(z+1\right)-\left(z+1\right)}\\ =\dfrac{\left(z-1\right)\left(xy-y-x+1\right)}{\left(z+1\right)\left(xy+y-x-1\right)}=\dfrac{\left(z-1\right)\left(x-1\right)\left(y-1\right)}{\left(z+1\right)\left(x+1\right)\left(y-1\right)}=\dfrac{\left(z-1\right)\left(x-1\right)}{\left(z+1\right)\left(x+1\right)}\\ =\dfrac{\left(5003-1\right)\left(5001-1\right)}{\left(5003+1\right)\left(5001+1\right)}=\dfrac{5002\cdot5000}{5004\cdot5002}=\dfrac{5000}{5004}=\dfrac{1250}{1251}\)