Maybe. I would have to change how the programs are parsed in order for that to work dynamically. I have all the data for size and cycles, though.
It doesn't need to be dynamically. Maybe just a button to show/refresh the cycle calculator and one to hide it. When you click the show button, another column will appear next to the text field for the code (parallel scrolling) and you can select the loops to multiply. At the bottom the total sum is displayed.
EDIT something like this:

I used the average number of cycles.