The current intensity is defined as the amount of charge that passes through a certain point in a certain time interval:

where
I is the current
Q the charge

is the time interval.
For the wire in our problem, the current is

while the charge is

, so we can find the time interval by re-arranging the previous formula and using these data:

so, the charge takes 500 s to pass through a certain point of the wire.