refactor(junit-reporter): re-order step time calculation

Move calculation of formatted step-time value to top of function
to be more precise.