The ZERO Code for California Energy Calculator