avoid int overrun in track duration calculation

http://forum.routeconverter.com/thread-1886.html