Appendix G: Algorithms https://www.energy.ca.gov/sites/default/files/2023-07/CEC-400-2022-008-CMF-REV2-APG.pdf