Fixed bug in way total anim frames are calculated

I was animating document scrollTo with a duration( 1500ms ) but animation was running way faster than I expected. After some research I found that the way frames are calculated is wrong.

Can you confirm me that is a a bug or if I am doing something wrong?

Thanks