The instantaneous displacement of a simple harmonic oscillator is given by y = A cos (ωt + n/4). Its speed will be maximum at the time:
n/4ω
The velocity is the time derivative of displacement: V = dy/dt = -A ω(sin ωt + n/4). Its maximum magnitude equal to Aω is obtained ωt = n/4, from which t = n/4ω.