I tried it and works fine! I made a query calculating the TotalToPay and another one with the TotalPaid, so everything appears well enough in the report!
But,... when someone hasn't paida anything, then the query doesn't return results and the cell Rest=TotalToPay-TotalPaid returns error...