Let the optical path be D, refractive index of medium is "u" and "d" as real path or the path travelled by wave in the medium of refractive index u, then optical path will be D=ud, this concepts come in wave optics which we can deal in higher classes.