Reflectivity is calculated on a straight line inside the quiet zone by finding the minimum and maximum of the electric field.