For what length of time can you live when your liver shuts down?

Variable. The course of disease depends on the cause of liver failure. See this site for more info. http://www.webmd.com/digestive-disorders/cirrhosis-liver.