I want to share the solution I found:
new_position = old_position - floor((number_of_upVotes - number_of_downVotes)/X)
Where X is an arbitrary number. In my case I used 5.
In this way the new position will always be between the highest one (usually 1) and the lowest one (for example 10).