magento2 – Apply taxes to existing orders

Customers created a lot of orders before client set up taxes. Now the client has wrong tax values in reports for that period.

So I’m wondering has anybody ever recalculated all the existing orders according to the new tax classes/rates set on products and could share the code? Or is there an extension for it?