Helper methodto calculate grand total added to script.js