Click the greenflag and drag the points. Go inside to know how to use. There are various formulas.
All code and idea by me.