# Vote - nostrum-coin/nostrum-coin Wiki

To vote it is necessary to call the `doVote` function, which has 3 parameters. The first parameter specifies the index in the list of possible values for the duration of the next election. The second defines the index in the list of possible values for the burn percentage, and the third defines index in the list of possible values for the stake earning percentage.

The list of possible values for the duration of the next election, list of possible values for the burn percentage and list of possible values for the stake earning percentage can be defined as:

``````duration_next_election = [1 week, 4 weeks, 8 weeks, 26 weeks, 52 weeks]
burn_percentage = [0%, 0.1%, 0.5%, 1.0%, 2.0%]
staking_percentage = [0%, 1%, 3%, 5%, 10%]
``````

The first value of each list has an index equal to `1`, the second has an index equal to `2`, and so on. So to do a vote for:

``````next election = 8 weeks
burn percentage = 0%
staking percentage = 10%
``````

It is necessary to make a call: `doVote(3, 1, 5)`. Since `8 weeks` is the index `3` in `duration_next_election` list, `0%` is the index `1` in `burn_percentage` list and `10%` is the index `5` in `staking_percentage` list.