$13/92=0.14\overline{1304347826086956521739}$
In this example, the length of nonrepeating part is $2$. The length of repeating part (repeating period) is $22$.
I collected some properties related to repeating decimals.
- The repeating period must be less than divisor.-- It doesn't give me the exact period.
- If divisor d is a multiple of $2^m 5^n$, the length of non-repeating part of $1\div d$ is $\max(m,n)$. -- It only applies to $1\div d$.
- If $1 \leqslant b < a$, and $a$ is not a multiple of $2$ or $5$, and $a$ and $b$ are relatively prime, then the repeating period of $b\div a$ equals $\operatorname{min}\left \{ e\in \mathbb{N}:10^e\equiv 1 \pmod{a} \right \}$. -- It has many conditions.
Without calculating the decimal, can we determine the length of the two parts of any dividend and divisor?
Given the reduced rational number $\frac{p}q$, you are seeking the smallest number of the form $10^n\left(10^r-1\right)$ which is divisible by $q$. Then there are $n$ non-repeating digits and $r$ repeating digits.
In particular, it only depends on $q$, not $p$ (assuming they are relatively prime.) That would make your answer for $13/92$ wrong.
So, if we write $q=2^a5^bq'$ where $\gcd(q',10)=1$, then we have $n=\max(a,b)$, and we'd have $r$ to order of $10$ modulo $q'$, which will be a divisor of $\mathbb \phi(q')$.
It is elementary if we know $n,r$ that $10^n(10^r-1)\frac{p}{q}$ must be an integer - that is the grade-school method for figuring out the value of a repeating decimal.
For example, if $p=1,q=5\cdot 37$, then $n=1$ and $r$ is the smallest value such that $10^r-1$ is divisible by $37$, which turns out to be $3$. And that's what we get: $$\frac{1}{5\cdot 37} = 0.0\overline{054}$$
Another example: $p=5,q=2^3\cdot 3\cdot 7$. Then $n=3$ and $q'=21$. That means that $r$ must be a divisor of $\phi(21)=12$. Actually, we can show it must be a divisor of $6$, and is $6$ since $1/7$ has repeating sequence of $6$. And, indeed:
$$\frac{5}{168} = 0.029\overline{761904}$$