Back up a bit.
Please clarify your goal and problem. As it is, I'm not sure what exactly you're looking for.
If I had to guess, I would say that you get the static dramatica table of story elements as input, and your math would turn it into the justified table, from which the software derives the signpost order etc? If not, I have no idea what it is you want.