In my book'a section on Young's double-slit experiment, the formula, $d = m \lambda \sin\theta$, is given. In this equation $d$ is the distance between two slits, $\lambda$ is the wavelength of light coming through the slits, and $\theta$ is the angle between the central reference to the brightest maximum on the screen opposite the slits.

I am assuming this formula's derivation involves some degree of approximation, because another formula in the same section assumes the distance between the slit and the screen is similar in length to the hypotenuse the picture above.
Using the same approximation, I got something similar but not the same: $$d = \frac{m\lambda}{\sin\theta} \, .$$
Which result is correct??