Equation of State in the framework of percolation