Javascript function for the impact calculator at The Life You Can Save