Use the following to remember the pattern for both formulas