Create roundCloseTime function.