Liquid flows out of a tank governed by Toricelli's law, , where is the volume, is the time, is the radius of the hole in the bottom of the tank, is the acceleration due to gravity, and is the height of water in the tank. By solving the equation for the height as a function of time, the length of time required to drain a tank can be calculated.