calculation of total hours and minutes made global, hence will work in all pages based on the items in the datagrid