How long will masks keep us safe from the virus?

How long will masks keep us safe from the virus?