Goal: My end goal is to add the number of rows that is equal to the number of days in a month. For that I believe we should be using this method: insertRows(rowIndex, numRows).
What I don't understand: However, I don't know how to calculate the number of days there are in a month of when the script was ran.
What I was able to find: There were other questions on Stack Overflow that regards a similar issue, however most of them has to do with calculating the number of days between two dates (example question: Google Apps Script: Number of days between two dates after subtracting full months). In my case, I'm not using two dates, rather wanting to calculate the number of days depending on what the current month is.
Hope you can help.