The docu says: The parseInt() function parses a string argument and returns an integer.
There's an additional note:
d => cast to number
calc d/10000 => result, typeof number
result => cast to string
perform parseInt(result) => d, typeof number
Thus d/60 is a division of type number ... creating a result of type number.