Example animation

modified the calculate function so you can pass whichever easing and
tween functions you want to it.
getText() fix