Let's simplify, let's accept only numbers!

`duration` is a number of milliseconds, as every duration in JavaScript.