Compute data size