I have designed a 3D helix which has a variable pitch $P(z)$ which is defined over the axial axis $z$ and has the form $P(z)=a*z+b$, $a$ and $b$ are constants. The larger the pitch, the sparser the helix should be at that part. It's like a wave which has variable wavelength. The radius of the helix is $r$. The total helix height (in $z$ direction) is $L$.
Since the helix has a linearly varying pitch, this spring-like helix will become more and more "dense" when $z$ increases if pitch decreases with $z$.
The question is how to express the helix length using all the aforementioned parameters?
I have a preliminary form, but this does not meet the result that I measured in the 3D CAD software.