When can I claim EU261 compensation?

When can I claim EU261 compensation?