location grep applied before multiplication and rate limit