1. If you know the current and time, you can calculate the charge in coulombs.
I \= q/t
I \= current (amperes, A)
q \= charge (coulombs, C)
t \= time (seconds, s)
2. Once you know the charge in coulombs, you know how many electrons were involved in the reaction.
moles of electrons \= (coulombs) / (96,500 coulombs/mol)
3. When you know the number of moles of electrons and you know the half-reaction for the metal, you can find out how many moles of metal plated out.
4. Once you know the number of moles of the metal, you can convert this to the number of grams of the metal.