return Long.MAX VALUE when getNextTime return null