convert complex fraction into milliseconds