When a bob in a simple pendulum is under the action of another force like that of buoyant force or electrostatic force, we use the following formula.
T = 2p Ö l / (g + a) , Where g and a are vector quantities and further a magnitude is given by F / m , where F is the force acting on the bob other than due to gravity. In this problem we have
F = m r g / s => F / m = r g / s
Since the direction of this force is opposite to that of g we get the time period of the pendulum as,
T = 2p Ö l / (g - (r g / s))