function to compute highest share price