Calculating the Maximum Attenuation for Optical Fiber Links