Answer:
Since we do not know the balance we should start with, a general answer:
![b_(new) = b_(old) + \sum_(i) d_(i) - \sum_(j) w_(j) \\](https://img.qammunity.org/2020/formulas/mathematics/middle-school/l9kti5mjzr1d90jpkajctt2i2w2ojka5ad.png)
598 - 47,27 = 550,73, assuming b_old was 0$ for your example
Explanation:
b stands for balance (old - before any deposits or withdrawals, new after all done)
d for deposits
w for withdrawals