sm2-plus
sm2-plus copied to clipboard
Issue with interval?
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