Created Function for Water Calculation