The code
Our code is structured in one function
calculateData
The function is the driving code for this application. In this function we utilize a while loop which allows us to continue looping over until a condition is met. In our case that condition is to run the loop as long as the value of month is less than equal to 60. Rest of the function is just simple math. We also utilized HTML template in this code.