Convert time into milliseconds, remove unused calendar