I would like a formula for a function whose graph has the following properties:
$f(0) = 0$.
$\lim\limits_{x\to\infty}f(x) = y$.
The shape of the function is approximately the following:

It should have an exponential or a logarithm in the formula.
Any function like this?
$$y = 5 - 5 \exp(-\alpha x)$$ where $\alpha >0$ will do the job. You can control the rate of growth by playing around with $\alpha$.