Impact of presidential and midterm elections