I am confused about the formula derivations in the code. Where is the information available to learn these formula derivations