Changed conversion of milliseconds to days to use TimeUnit