Determine the current in an $$RC$$ circuit during charging and discharging.