fix rounding error on record duration and end time