How to create custom tax rule in magento 2
Login in to Magento Admin
Go to Stores -> Taxes -> Tax Zones and Rates From Navigation
Add New Tax Rate from Tax Zones and Rates
Fill out below *Required fields of Tax Zones and Rates
Tax Identifier: Fill out Tax Identifier name.
Zip/Post Code: Fill out Specific Zip/Post Code or write * for any post code.
Country: Select Country of Tax rates.
Rate Percent: Fill out Rate Percentage.
After that Save Rates.
Now, Go to Stores -> Taxes -> Tax Rules From Navigation
Fill out below *Required fields of Tax rules
Name : Fill out name of Tax Rules
Tax Rate: Select already created Tax Rate or create new Tax rate by click on Add New Tax Rate and follow process from start.
After that Save Rule.
Now customer Have To pay Tax According Tax Rules.