(AP) -- Brazilian workers who find themselves answering work emails on their smartphones after the end of their shifts can qualify for overtime under a new law.

The new legislation was approved by President Dilma Rousseff last month.

It says that company emails to workers are equivalent to orders given directly to the employee. Labor attorneys told the Folha de Sao Paulo newspaper this makes it possible for workers answering emails after hours to ask for overtime pay.

This issue has come up in the as well. In May, Chicago policeman Jeffrey Allen filed a class action suit against the city, asking for unpaid overtime compensation.