Two rays diffracted by adjacent grooves will differ in path length by a distance mλ. The total difference between the longest and shortest path within a beam is computed by multiplying mλ by the total number of grooves illuminated.