How is the cost of my local water supply determined?

Who decides how much my municipal water rates are and how is that calculated?