Approximation of the absorption index of a film under the chromogenic effect