attenuator formulas