Auto Calculate Total, Grand Total in sales order based on Sales order Item Amount

DO you have any example code ?

Sure check the app I am working on