since you're doing a lot of multiplications by 1000000 and a minor typo (+/- one 0) would be an annoying bug, why not refactor this to a const? (you could create your own milliseconds if you wanted)