depth to time conversion functions