There's nothing wrong with your method at all (tho I admit I didnt try it). All I wound up doing was changing $1- to $($1-,2) and left everything else as it was.
EDITED
Also, that was taken from a larger script (none of which mattered for my issue). If that was the ONLY part of the script, then I wouldnt have put it here like that
