template updated for custom groups
CAGR calculation