getSpeed = function (distance, settings) {
		var speed = settings.speedAsDuration ? settings.speed : Math.abs(distance / 1000 * settings.speed);
		if (settings.durationMax && speed > settings.durationMax) return settings.durationMax;
		if (settings.durationMin && speed < settings.durationMin) return settings.durationMin;
		return parseInt(speed, 10);
	}
Calculate the speed to use for the animation
@param  {Number} distance The distance to travel
@param  {Object} settings The plugin settings
@return {Number}          How fast to animate