I created a function that delivers an array to the modal when the button is pressed.
In modal, calculations are made based on the array delivered.
However, bec