When does light behave as a wave? When does it

When does light behave as a wave? When does it behave as a particle?