Text this: Function model for calculating the Water Quality Index - WQI