lo-tp/sm2-plus

Issue with interval?

Closed this issue · 1 comments

Hello,
how is this supposed to work?

max percentOverDue your code can calculate is 2
max difficultyWeight your code can calculate is 3

which means max interval your code can calculate when answers are correct is 5

Am I missing something here?

I see where is the problem, it shouldn't be
interval = 1 + Math.round((difficultyWeight - 1) * percentOverDue)
but
interval = interval * ( 1 + Math.round((difficultyWeight - 1) * percentOverDue))

and the same for incorrect answer