class TimeToLive implements
    Computable {

    @Override
    public long compute()
    {
        /*
         * If the difference between the most recent date and NOW is 0 (zero) it means
         * the current day, so set the days multiplier to 1 (one) avoiding multiplying
         * by 0 (zero).
         */
        final long daysDiff = daysBetweenDateBeforeTodayAndNow( dateBeforeToday.toInstant() );
        final long daysMultiplier = daysDiff > 0 ? daysDiff : DEFAULT_MULTIPLIER;

        return ttlFactor * daysMultiplier;
    }

    public  TimeToLive( final Date dateBeforeToday, final int ttlFactor );

}