fix integer overflow after 50 days (thx Hauke Mehrtens)