calculate effective memory access time = cache hit ratio