Determination of Porosity for Core Samples