It returns the volume of the compartment