About order.total_price, I need the value"p" to get rid of the shipping fee and tax

How do I calculate within the script?

shipping and tax value can be gained but not able to calculate within the script.

Thank you very much for helping !