<%for (const [year, yearMap] of sharesMaps) {%> <%for (const [month, monthItems] of yearMap) {%> <%for (let index = 0; index < monthItems.length; index++) {%> <%const share = monthItems[index]%> <%total = total -1%> <%}%> <%}%> <%}%>