When to say thank you

When to say thank you