Refractive Index of a medium can be calculated as the ratio of real depth and apparent depth.
The relation between refractive index of a medium, real depth and apparent depth is