Salinity measurement and calculations