A block of mass m containing a net positive charge q is placed on a smooth horizontal table which terminates in a vertical wall as shown in figure. The distance of the block from the wall is d. A horizontal electric field E towards right is switched on. Assuming elastic collision (if any), the time period of resulting oscillatory motion is