Here is the code for the CALCULATE Broadcast message. It's located on the GAME LOOP Sprite. There are two code blocks for CALCULATE.