Implement functions for computing vote threshold