Calculating data retrieval time