def net_total(rows):
    return float(sum(max(0,cents-discount) for enabled,cents,discount in rows if enabled))
