get max number of shares and time threshold