Total distance covered by the particle.
we divide this whole path in 8 intervals of .
so, 5/8 oscillations means, it has already completed oscillation(i.e. total dist. = 2A) and is half way to the other side i.e. A/2.
substitute to get
now, total time taken = time to complete previous one half(2A) + time taken to complete