converting formatting to use time.Duration and store results as ms