const maxDate = dates => new Date(Math.max(...dates));