{
const spAscendingDate = sp.sort(
(a, b) => new Date(a.Date) - new Date(b.Date)
);
const windowsOfFifteenPercentGrowth = [];
for (let index = 0; index < spAscendingDate.length - 1; ++index) {
const beginning = spAscendingDate[index];
const end = spAscendingDate[index + 1];
const growth = beginning["Close Number"] / end["Open Number"];
if (growth > 1.15) {
windowsOfFifteenPercentGrowth.push({
range: [beginning.Date, end.Date],
growth: growth
});
}
}
return windowsOfFifteenPercentGrowth;
}