It is sadly true that at present a formula for writing doesn't exist. I don't accept this. Ergo I am working on a formula for how to compose stories and how to equivocate all the elements in a composition.
This actually involves Microsoft Excel. When completed I will apprise you of it.