Lost in a loop, sum not adding up correctly... Please help.

Printable View