Really crappy version using polynomial regression, not deployed to shinyapps