calcTime() fix

Fixed bug which caused script failure, when time contained milliseconds