Helper methodfor calculating grand total added to script.js