The formula is the more general formula for a two-slit interference pattern: it gives the intensity as a function of phase shift (this is also in your text, equation 37-13). The expression just substitues for the phase shift.