Typescript Max Date In Array Python Question