In the two-slit interference experiment, how can we determine where a point P on the screen is in the diffraction pattern by giving the maximum or minimum on which it lies or the maximum and minimum between which it lies. Given that the slit widths are each a, their separation is d, the wavelength is $\lambda $, the viewing screen is at a distance D and the distance between P and the central maxima is y.

I am not sure if we use the formula $asin\theta =m\lambda $ to calculate m, since I don't know whether this formula can be used in double slit diffraction. Or we should use another method to find out whether P is the maximum/minimum?

I am not sure if we use the formula $asin\theta =m\lambda $ to calculate m, since I don't know whether this formula can be used in double slit diffraction. Or we should use another method to find out whether P is the maximum/minimum?