Example inspired from http://en.wikipedia.org/wiki/UML_state_machine
Click on the "On/C" button, then you can do some simple calculations...
provided by Intersel