Please help me out if use online validator the attachment will disappear and nothing will show up

Design hint: There might be a problem with your sum calculation (line 455). It seems that you wrote o (letter) instead of 0 (digit).

To treat empty values, you can use coalesce() function instead of if. See I want to show the total of the expenses, but I see that it does not add up the variables - #2 by wroos.