states where you get time off to voteSkye Gould/Olivia Reaney/Business Insider

If you’re wondering whether you can come in late or leave work early to cast your vote in the 2018 midterm elections on November 6, the short answer is, it depends on where you work.

Currently, there is no federal law that mandates employers provide their employees time off to cast their ballots. But the majority of US states have time-off-to-vote laws, also referred to as voter-leave laws, and have different requirements and exceptions for employers and employees.

While some states guarantee paid time off, for example, others do not. And the time guaranteed for employees to vote varies state-by-state as well.

Of course, your own employer may offer leave to vote, even if your state does not. In 2016, for example, Patagonia announced that would close all US stores on Election Day in an effort to encourage customers and employees to vote.

But, since not everyone’s employer is so generous, you’d be well-advised to learn about the specific voter leave provisions in your state before the midterms.