Can someone please help ? I want to embed stripe API for the custom calculator.

You mean this or something else?
https://stripe.com/docs/orders/tax-integration
https://stripe.com/docs/orders/shipping-integration