Actual depth of the pin, d = 15 cm

Ratio of actual depth to the apparent depth is equal to the refractive index of glass, i.e.

The distance at which the pin appears to be raised
For a small angle of incidence, this distance does not depend upon the location of the slab.