In an RC circuit while charging