Keep in mind with !calc that it will mostly only do basic calculations. Also, someone can verify if that is safe how I have it set up. I removed $ and | which should prevent any improper use of the command, but there may be other things that should be considered with such a command that I'm not thinking of.
$calc($$2-) would be completely safe; the only potentially undesirable behaviour that could occur is evaluation of variables.