title: Android Studio Unit test | Days.daysBetween fail randomly
body: <p>I am failing to understand why the following test fails some times, while other times it works.
  What I'm trying to get is the count of days left from a date. It seems to work some times but sometimes it doesn't. This is because instead of counting the days as suggested, it counts one less and I don't understand why it sometimes works and sometimes it doesn't.</p>
  <p><strong>Here the function:</strong></p>
  <pre><code>internal fun getRemainingDays(itemDate: Date): Int? {
      if (itemDate == null) return null
      return Days.daysBetween(LocalDate(Date()), LocalDate(itemDate)).days
  }
  </code></pre>
  <p><strong>Here my test:</strong></p>
  <pre><code>@Test
  fun getRemainingDays() { 
      val testDate = LocalDate(Date()).plusDays(2).toDate()
      assertThat(viewModel.getRemainingDays(testDate), equalTo(2))
  }
  </code></pre>