Calculate Mass Density