Click the green flag to start The user enters the data, the program takes a decision and calculates the result based on the data entry. In other words, this script calculates the profit or loss.