The guessing is repeated until the computed flow is within 0.1% of the flow desired.

how i can write the correct condition ( loop) of this sentence ?

thanks