Shiny code for "How Long Will It Last?" class project