Calculate the specific gravity of a substance with a density