The refraction index, n, of a transparent medium is defined as the ratio of the speed of light in the vacuum to the speed of light in that medium. The formula is
n=cv
from the above formula, we can calculate the speed of light in that medium.it decreases, As v=cn
where,
c=speed of light in vacuum
n=refractive index of medium