Agency Profit Calculations

This feature extends the profit calculation functionality by providing the ability to calculate profits for Agencies in a 3-tier relationship where previously this was available only for HQ and Agents.