By the error function for the sum $$\sum_{i = 0}^\infty \frac{1}{i!},$$ I mean the function $$f : \mathbb{R}_{> 0} \rightarrow \mathbb{N}$$ defined as follows.
For each $\varepsilon \in \mathbb{R}_{>0}$, $f(\varepsilon)$ is the least natural number $n$ such that $$\left|e - \sum_{i = 0}^n \frac{1}{i!}\right| < \varepsilon$$
More generally, any convergent series has a corresponding error function.
Question. Regarding the above series for Euler's number $e$, is it known how to compute $f(\varepsilon)$ when $\varepsilon$ is an explicitly known rational number written as a quotient of two coprime integers?