Calculation error (loop)

Hm, that expression looks correct and shouldn't cause any issues.

Are you doing a

selected()

call somewhere? It looks like it may be related to a separate loop, actually (related to the 'od' loop)