There is not enough enough information as to calculating the porosity of the sample. Porosity is a measure of how much of a rock is open space. This space can be between grains or within cracks or cavities of the rock. It can be calculated by the volume of the open spaces divided by the total volume times 100 percent.