Faraday's first law of electrolysis:
The amount of the substance that undergoes oxidation or reduction at each electrode during electrolysis is directly proportional to the amount of electricity that passes through the cell.
Thus mass of the substance produced
=I(A) ×t(s)96500 C/mol e−×mole ratio×molar mass
Here I(A) is current in ampere and t(s) is time in second.