Where is tax rules based customer's billing info or shipping info?

When u set up a rate by state, where does IFS base it shipping state, billing state or both?

Ex. WI tax is 5.5

Billing WI shipping outside WI and billing outside WI shipping in WI