Okay, so using Kirchhoff's Loop Rule, we know the voltage drop across the entire system is 0. We can model this in a equation.
Vbatt = Vcap + Vres.
We are also told the voltage drop across the capacitor is I(t)R and voltage drop across the capacitor is q(t)/C. We can then substitute dq/dt in for I(t). We get:
Vbatt = q(t)/C + (dq/dt)R
This gets rid of the problem of I. Now we just have to get dq/dt by itself.
V - q/C = (dq/dt)*R Subtract q/C
(1/R)*(V - q/C) = dq/dt Divide by R on both sides

I think this is right, but don't quote me.
Hope this helps!