The discriminant quotient formula for global fields