if this is not performance sensitive I would prefer more use of `Duration`, such as

    val OneDay = 1.day

    if (d >= OneDay) ...