Added grand total calculation