mass of bob, m = 40 g = 0.04 kg
Bob performs 45 oscillations in 20 seconds.
so time period, T = 20/45
find out g using the formula

After electric field is switched on, effective g' = g - qE/m
and again use the above formula to find T' (new period of oscillations)