# Calculating maximum velocity in simple harmonic motion

I'm a bit confused about simple harmonic motion...

If a particle is in simple harmonic motion, to calculate the maximum velocity can I use either displacement = 0 or acceleration = 0, since i know in both graphs a zero in displacement and acceleration corresponds to maximum velocity?