The equation $$n = \frac{q}{f}$$ relates the amount of substance produced or consumed in a reaction during electrolysis to the electric charge passed through the electrolyte. Here, $$n$$ is the number of moles of electrons transferred, $$q$$ is the total electric charge in coulombs, and $$f$$ is Faraday's constant, which represents the charge per mole of electrons. This equation highlights how electrochemical reactions can be quantitatively analyzed based on the electric current and time involved.