Chapter 6. Calculating User-defined Fields