Add formula for 'stats' extension