The duration of a tween can be a function (instead of a number) which will be called every time the tween is initialized. Try using duration: getDuration.bind(null, 100, 500) in the tween config (bind creates a function with pre-filled arguments).
updateTo affects the properties of the object affected by the tween, not the tween itself.