I think you are getting a bit confused, if what you want is the syntax then surely we are looking at a runtime expression, so how would you want to scale that up? Maybe am I getting this completely wrong.. don't know, anyhow hopes this helps:
int $newtime = ((currentTime -query) -72); ty = getAttr -t $newtime ball.ty;