I am stuck trying to determine the phase response of a high pass filter. I was able to find the transfer function for the high pass filter and the magnitude but I am stuck finding the phase. I found the transfer function of a high pass filter as $$\frac{V_{out}(j\omega)}{V_{in}(j\omega)}=\frac{j\omega}{j\omega+\frac{1}{RC}}$$
and I calculated the magnitude of the high pass filter as
$$|V_{out}(j\omega)|=\frac{\omega}{\sqrt{\omega^{2}+(\frac{1}{RC})^{2}}}$$
I found online that the phase response of a high pass filter is $$\frac{\pi}{2}-tan^{-1}(\omega RC)$$ But i cannot figure out how the derivation got there. I would really like to understand their logic. Thank you for anyone who can teach me the rest of this derivation