You get 40 votes if you vote for at least 10 questions, and those votes must be casted before you vote for 30 answers. For example, this means:
- If you vote for 30 answers, and 0 questions, your daily limit is 30
- If you vote for 40 questions, and 0 answers, your daily limit is 40
- If you vote for 5 questions, 15 answers, 4 questions, and 15 answers (in that order), your daily limit is 39
When you get the message "you still have 5 votes," that is the number of votes you still have before to reach the daily limit. Suppose you voted for 25 answers, and you get that message; at that point, you can vote for questions, but you still have 5 votes left, and you cannot vote for 10 questions.