Day boundaries and Anki step intervals

Hey everyone,

I’m experiencing problems from Anki’s intervals depending on new days. When I’m learning a card, I have the steps as shown in the image. Ideally, when I’m learning the card and I don’t remember it, it’ll be shown again in 20 minutes and if I do remember, in 4 hours…8hours…1 day…2days etc.
It’s extremely important that I want Anki to show me the card down to the exact interval(i.e. 8 hours = 480 minutes, 1 day = 1440 minutes).
However, Anki fails to follow the interval whenever they cross the ‘new day boundary’ and shows me the card before 480/1440 minutes. For example, when it’s 10pm and I’m studying a new card and click ‘good’, it does not follow 4 hours(240 mins) and instead shows me the card at midnight(the new day) instead of 2am.

Is there any way I can remove/avoid or circumvent this new day boundary?

Thank you for reading this in advance, I hope you understand what i wanted to say…

1 Like

No, there isn’t.
It sounds like you’ve set the day boundary to midnight, but regularly study after that. If you set it to a later time at which you are usually asleep, like 4 am as is the default setting, there shouldn’t be a problem, because when you wake up the interval will have passed anyway.

3 Likes

Is there a deeper discussion on why this day interval even exists in the first place? Why wouldn’t our “daily limits” be set based on a rolling timer rather than a fixed cut-off time? It feels very unnatural to have a giant load of cards to review in the morning, with only a few at night.

For example, if I have 10 cards in a deck, and set my daily new card limit to 2, I would expect this day limit to be based on when I first looked at the first new card. For example, lets say 7:00. I look at the 2nd new card at 9:00. So I would expect to see the 3rd new card scheduled for 7:00 the next day, not some arbitrary cut-off time like midnight or 4:00. And when I end up reviewing the 3rd new card at 10:00 on day2 rather than 7:00 as scheduled, I would expect to see the 4th card scheduled for 10:00 (24 hrs after I studied the oldest “new” card).

The same would go for reviews; you are comparing the daily limits with the number of cards reviewed within the last 24 hours, as opposed to since some arbitrary cut off time for a “day”.

Sleep plays an important role when solidfying memories. Despite the spaced repetition effect, I’m rather able to recall a card I have answered 8 hours ago spending those 8 hours sleeping, than a card I answered 16 awake hours ago.
Also, that’s just how people work. If I meet someone tonight and expect to see them again the next morning, I say ‘see you tomorrow’, even if it won’t even be 12 hours.
Likewise with my Anki reviews: Reviewing daily is a much more practical goal than reviewing once every 24 hours. Maybe I usually review in the evening, but tomorrow I’ll only have time in the morning. If Anki scheduled a card today to be due in 24 hours, it would be 48 hours until I could review it (or two sleep cycles).

4 Likes

Hmm, I’m not really convinced. Maybe what you are studying works well enough like that, but if I review a card at 11:59PM and Anki reschedules it for the next day, and this arbitrary cut off time occurs at midnight, then it will be rescheduled for a minute later rather than 24 hours later. This alone just doesn’t make sense to me. More than anything though, I get really overwhelmed by seeing the giant stack of cards in the morning rather than having a gradual growth over time. I can manage a few cards an hour, but can’t manage 150 in the morning before work.

The only thing I can think is that having every card split between the “learning” phase and the “long term memory” phase is just a way to save disk space (i.e. saving shorter numbers representing day interval as opposed to longer numbers representing minute intervals). With current computational power and disk space of phones/PCs, I no longer think this should be an issue.

To reiterate, it doesn’t matter if the technically scheduled interval is 1 minute, if you’re asleep at the time. This typically means an interval of at least 6 to 8 hours.
If you feel overwhelmed by the daily due count, there are techniques to deal with that, e.g. timeboxing.
Disk space is not a consideration. I’ve explained above why due dates are day-based.

1 Like

The default day cutoff is 4am. If you’re awake at that time, you should adjust the cutoff to a time that occurs when you’re usually sleeping.

1 Like

No one is debating the importance of sleep for memory, I’m debating the need to stick to the intervals assigned to a card rather than rounding to the nearest arbitrarily set cut-off time. But on the topic of sleep, there are all sorts of sleep schedules. Not everyone sleeps 6-8 hrs in one go. Feel free to search wikipedia for “polyphasic sleep” if interested.

If you abide by the theory that the days vs minute interval makes sense you’d have to agree that if I study a card at 11:59PM, press Good with an interval of 1 day, go to sleep, and my Anki cutoff time is midnight, and I wake up at 6am (such that I abide by your monophasic sleep assumption), then me studying that same card at 6am is the same as me studying that card at 11:59PM that evening. Obviously I’m more likely to remember that card at 6am than I am at 11:59PM, so schedule according to the interval it has been assigned, not some random round-to-the-nearest-cut-off-interval.

I find this to be completely irrelevant to my question. If I tell someone I will see them in 12 hours I will show up at the meeting place in 12 hours, not expect them to be waiting there from 4am or some other random cutoff time.

I review multiple times a day as it would be impossible to review everything in one sitting, and I find this approach to be lead to much better retention anyway (small doses rather than all at once).

I want to review the cards I reviewed longest ago first, not the ones I reviewed before going to bed last night. If I review CARD1 at 6am and and CARD2 at 11:59, answering each with a 1day interval Good answer, I would expect to see CARD1 before I see CARD2.

I’m afraid there will inevitably be different opinions about how programs function, and it’s not always practical to support every desired use case. If this is something you feel strongly about, perhaps there is some alternative software out there that better meets your needs.

Thank you for your message @dae. Your work on this is greatly appreciated, and I apologize if my tone came off negatively on that. I’m sure I can find some workaround with the custom scheduler options available now.

I was more curious as to why the initial split in “learning” vs “reviewing” and why one used minutes and the other days to track intervals. I was looking for a deeper discussion on this that maybe involved some research into how humans handle short-term vs long-term memory or the like, and some quantitative models used for each region that don’t lend themselves to a single unified model. I think at the extreme end of each (new cards and mature cards) the two different models work well enough, but the cross-over areas near the longest learning interval and before “review” starts seem forced/arbitrary/clunky for the reasons I mention in previous posts.

Very old versions of Anki treated reviews like you describe - they were scheduled to a particular second, and it resulted in them becoming available throughout the day. Many people did not like that; they wanted to have access to all of their cards at any time the next day.

Learning steps were initially intended to be used for short intraday periods, so per second scheduling made more sense. When users started using them for multi-day delays, it reintroduced the same issue of reviews trickling in throughout the day, and so the code was changed to treat intervals that cross a day boundary like reviews are treated.

1 Like

Thank you for the insight! I’m curious to try out some of the more modern custom schedulers listed on here (after fixing my issue you’re helping me with surrounding the default scheduler), but curious to know if you know any existing custom schedulers that would work similar to what you are describing about earlier versions of Anki?

I can see the point of being able to review “ahead” in that sense, if you have time in the morning but not the evening, or some other reasoning, but can you confirm how the following scenario would play out:

  1. You have two cards in a deck CARD1 and CARD2. They are unrelated as far as Fuzz is concerned. They currently have the exact same review history, are in the REVIEW state and have intervals of 1d.
  2. You press Good (1 day interval) on CARD1 at 06:01AM on DAY1
  3. You press Good (1 day interval) on CARD2 at 11:50PM on DAY1
  4. Your cutoff time for the day is midnight.

If I open the deck for review on on DAY2 at 12:01AM, will I surely see CARD1 before CARD2 or is their order randomized within the day in which they are both due?

If cards cross a day boundary, they are treated like reviews, and will be shown in a random order. It is not practical to make this behaviour customizable.

Hmm, but don’t you think equating an interval of 24 hrs and 8 hrs is undesirable? Again, it makes much less impact on larger intervals (i.e. the difference between 14days and 8hrs vs 15 days is proportionally much less than 1 day and 8 hrs), but for the default settings, this cutoff point seems quite unexpected/undesirable due to the relative extreme rounding.

I’ve explained why cards are scheduled at the start of the next day in my previous post: Day boundaries and Anki step intervals - #11 by dae. Sleep plays an important role in consolidating memories, and I suspect getting a good night’s rest matters more than whether you wait an extra number of hours the next day before reviewing again.

Ok, so I guess the solution to this is to always have learning steps well beyond a single day interval, else this issue will exist. Seems strange that the default deck settings would not do so though as I expect others would be surprised that 24 hrs and 8 hrs (or whatever number of hours they sleep) are equivalent. With larger maximum learning steps, I can see most people being ok with this difference of up to a day. Have you considered increasing the default learning steps to be up to 3 days or something like that? It sounds like that would please both those of my opinion and those from what you described.

Sorry, I have not seen much demand for this, and it would be troublesome to change.

I wonder if it is just the case that users do not know about this. For example, I’ve been using Anki since 2012 or so and had no idea about any of this until looking into the code just recently. Is there any place in the docs that describe the actual calculations done within the scheduler? I think it is difficult to realize what the scheduler is actually doing without looking at the code, and I’d venture to guess most users aren’t doing that. I can only speak from personal experience here, but the code I reviewed did not match what I had understood from the docs regarding the deck preferences, and I’m guessing I’m not alone in that.

It is covered in the manual (eg Deck Options - Anki Manual), and there are various references to intraday and interday learning throughout the UI. If you feel the existing coverage in the manual is inadequate, please feel free to submit a pull request that makes it clearer in the manual.

Yeah, I would like to understand the code better, and while doing so, I can work on writing up some changes to the docs. Ideally I’d like to see something like a flow chart showing the if/else statements you have, along with the actual calculations of the intervals, ease-factor, etc.