Here's a simple one

Code:
on *:TEXT:!calc *:#: msg $chan $nick $+ : The answer is $calc($2-)