Try changing
Code:
var %left = $($+($calc(5 - $v1),/5))
to
Code:
var %left = $+($calc(5 - $v1),/5)

or
Code:
var %left = $+($calc(5 - $v2),/5)