A comprehensive template for calculating performance fees in various contexts, including investment management and consulting.