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