Skip to content

Subtract shipping charge

I have created a custom shipping method and it’s applied fine, but what I need is, How I will subtract the shipping charge from grand total instead of adding to grand total in Magento 2.