Thin films
Consider monochromatic light that falls from above on a thin film of material. Some of the reflected light comes off the upper surface and some reflects off the lower surface as shown to the right. An interference maximum results when the path difference, twice the thickness 2t, is an integral (or half integral depending on conditions discussed below) number of wavelengths.
One must remember that the relevant wavelength is that in the material of the film, which is related to the wavelength in vacuum by the index of refraction n.
Light will reflect with a 180 degree phase change if it reflects off a surface with higher index of refraction. For example, if the film is water surrounded on both sides by air, the upper reflection gets a 180 degree change, but not the lower one; so you use the formula with the extra 1/2 above for the condition for bright reflections. As a second example, if there is vacuum above, liquid in the film, and glass below of an even higher index, you use the formula without the 1/2 for bright reflections.