Script keeps running after fetching all days data, as an alternative I'm forcing it to only run for 30 seconds, but that's kinda hard-coded and if I want to fetch a little more data the time will have to be "Recalculated" to a new estimate, so Ideally the script have to know when it finished all fetching all the data.