Function to calculate concentration from the given mass of solute and volume of a solution
function get_concentration ( mass , volume ) { if ( volume == 0 ) return - 1 ; else return ( mass / volume ) * 1000 ; }