SELECT SUM(importo*IF(stato='caricato',1,-1))
FROM tabella