Completed functionality for mg/L calculator