I want to derive for myself the known formula for the upper bound for one sided confidence interval $\bar{x} + z_{\alpha}(\frac{\sigma}{\sqrt{n}})$ for mean $\mu$ for a sample of size $n$ from a normal distribution $N(\mu, \sigma^{2})$ where $\sigma$ is known, at $1-\alpha$ confidence level. Using standard terminology, I start with
$$P\left(\frac{\sqrt{n}(\bar{X} - \mu)}{\sigma} \geq z_{\alpha}\right) = 1 - \alpha$$
and rearranging this gives
$$P(\mu \leq \bar{X} - z_{\alpha}\left(\frac{\sigma}{\sqrt{n}}\right)) = 1 - \alpha$$
So according to me the upper bound is $\bar{X} - z_{\alpha}\left(\frac{\sigma}{\sqrt{n}}\right)$, i.e. has a -ve sign instead of +ve sign between the two terms. Where have I made a mistake?