Prefer to express durations using the largest possible unit, e.g. Duration.ofDays(1) instead of Duration.ofSeconds(86400).
Duration.ofDays(1)
Duration.ofSeconds(86400)