When you are using eCart to add in your own charge rules you will not need to code anything yourself. You are just setting up the values in the interface, eCart will write the code for you based on what you setup. Before you use eCart to edit any of the charge rules or add your own make sure to check out this post and get the updated files you will need:
showthread.php?t=12820