In the first run, only day1 is long, and then you multiply them by INTs, on the second, you are defining the resulting operation of INTs as Long.... different things, give different results.
I would say it's a BUG, but ratter a "be careful with your definitions" heads up!
The right hand side is evaluated and only then assigned to the long variable. As there are only ints on right side, the result is an int.
Another possible way to write it:
B4X:
Dim day2 As Long = (20193).As(Long) * 24 * 3600 * 1000