Perform calculation on variable

Very easy. See Set Variable to Calculation action.

Getting Started with Keyboard Maestro

For more help, see Getting Started with Keyboard Maestro and the Forum .