Optimal Water Intake

What is the optimal amount of water to be drinking a day? What is too much, too little? I currently drink around 4000mL