How to implimet Tax & Charges in Custome doctype

I want to link tax & Charges template on my custom doc type. I have duplicate tax & charges fields as per sales order doctype. buy It not showing total amount & Total tax & charges.
I have also tried by importing sales_taxes_and_charges_template.js

Kindly help.

What is the code you have tried? And what is the use case are you trying to implement, which needs taxes & charges on a Custom Doctype?