Appendix Formulas