formula of code of conduct in elections