Added formula for php