A harmonic wave propagates in a medium. Find the average energy density of the wave, if at any point, the energy density becomes equal to W0 at an instant t=t0+T/6, where t0 is the instant when amplitude is maximum at this location and T is the time period of oscillation.