In electrolysis, a small amount of current is passed through the rusted metal so that it can induce an ion exchange.
The portion from where, we have to remove rust is emerged in the solution of water and washing soda. The positive is sacrificial electrode which can be piece of iron.
This procedure takes an hour to two days for completion. The time taken depend upon the size of corroded ion and the quantity of rust.
Thus, Rusted metal takes an hour to two days for rust removal.