i have written this code to check given date is within 10 days or outside 10 days but AlarmManager.INTERVAL\_DAY always give 0 . how to check given date lies within 10 days in android or java?

```
long lastdate=1535826537767

if ((System.currentTimeMillis() - lastdate) < (AlarmManager.INTERVAL_DAY * 10)) {
    Log.d("Status", "Date within 10 days")       
} else {
    Log.d("Status", "Date within 10 days")
}

```