Please see the attachment.
The voltage as a function of time is given, the current as a function of time is calculated.