I am not sure if I understand what you are asking, but it seems like you just need to thread a section at a time. First thread will be from Z0. to Z-.25. Second from Z-.35 to Z-.5. And so on. I do not see that the calculations should be that difficult. Diagram it out on CAD and the substitute variables in the appropriate places.