An apparatus to regulate the flow of a liquid from a container, dependent on nutritional requirements of a user stored within computer memory includes a container that comprises a bottom, a body and a lid, the lid including an opening therethrough, a straw or spout for removing the liquid from the container in the lid, a control assembly including a microprocessor, a liquid regulating valve, a port for communicating with an external computing device and source of electrical power. User nutritional information includes a personal profile, beverage list, nutrient limits and dietary, nutrition and hydration goals. Reference data includes beverage composition, recommended nutrient limits, and standards for determining liquid consumption. Sensors to determine temperature, volume, attitude and power level may be included. A method to regulate flow of a liquid from a container, dependent on the dietary, nutritional, medicinal and therapeutic requirements, and hydration goals of a user is disclosed.