I'm using the following equation: $$x=5\left\lceil\frac{mx+b}{5}\right\rceil$$ where $m$ and $b$ are unknown reals, though $0<m<1$ is known. I need to find the minimum $x$ such that this is true, in terms of $m$ and $b$. With what equation could I do this? I tried using $x=\left\lfloor\frac{b+5}{1-m}\right\rfloor$, but that didn't work.
Example: $m=0.3$, $b=1000$. The minimum value of $x$ for which this equation is true is $1430$ (I figured this out by graphing). But how would I know that?