excess_attenuation function

Measure excess attenuation