added better way to get latest day of history of a stock