When does a photon behave like a wave? When does

When does a photon behave like a wave? When does it behave like a particle?