calculate the IO time and calculation time