change weatherArray.length to numdays

Not sure if this is correct, but there's no reason to loop over the whole array if we're only taking up to numDays to display?