Is there a good single source/tutorial that covers the creation of custom calculated pids? I have been all over the forums leaning, but I feel like there are still some missing pieces.

I have read the sae_generic.txt file and looked at sample cals_pids.txt files. Still, is there a single source for learning how to do this that I have overlooked?