These names are super unclear.  It appears to be milliseconds and seconds.  I'm not really sure what you're trying to do here - why multiplying 10 and then dividing by 10,000?

Why aren't you generating animation_length_s in relation to animation_length_ms?  
```js
var animation_length_s = Mail.ceil(animation_length_ms *10)/10000
```