sm2-plus icon indicating copy to clipboard operation
sm2-plus copied to clipboard

Issue with interval?

Open PiotrSss opened this issue 6 years ago • 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?

PiotrSss avatar Jul 12 '18 09:07 PiotrSss

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

PiotrSss avatar Jul 12 '18 09:07 PiotrSss