correctly calculate minBufferTime