title: Custom TAX rule woocommerce
body: <p>I have a question about setting up a tax enforcement under a particular condition.</p>
  <p>Now my ecommerce is set up to calculate taxes based on billing address.</p>
  <p>Therefore:</p>
  <ul>
  <li>If the customer is European, the taxes are calculated based on the percentage of his country.</li>
  <li>If the customer is from outside Europe, the tax is zero.</li>
  </ul>
  <p>However, it is happening that some customers set the non-European billing address and the billing address in Europe, so the taxes are not calculated.</p>
  <p>According to a recent court ruling, in these cases the taxation of the country in which the selling company is based, in my case Italy, should be applied, therefore taxation at 22%.</p>
  <p>How can I set this rule with a function?</p>
  <p>Thank you!</p>