You may as well use shipping integrations on your online store to calculate this immediately in your case (from shipping application to outsourced fulfillment vendors).
We're sorry this route isn't but out there. https://bookmarklogin.com/story18139909/the-basic-principles-of-rates-at-checkout-for-shopify