Autosum for Cashbook

Hello everyone,
So my question is- I have Cashbook doctype in Erp.
In that i have some fields called opening balance, daily entries (expenses), (fund input).
So i want that the Net monthly expenses fields and Closing balance get calculated automatically. Based on the perday expenses and fund input.
My organization have this in their erp but i installed ERP personally for myself via DOCKER.

Thanks.

All sorted via client script