Add formula for php stats extension