Adjusting the on and off time