The absolute refractive index of a substance is calculated by dividing the speed of light in a vacuum (or air) by the speed of light within that substance. \[ n = \frac{c}{v} \] In this formula, $n$ represents the absolute refractive index, $c$ is the speed of light in a vacuum, and $v$ is the speed of light in the specific substance.