changed signature of Path.calcMillis