How can i Calculate this Customer Fields?

Good afternoon team,

I need to know what fields can I use to calculate these specific fields on the customer screen:

I need it because I´m creating a screen where my user can see the customers and their Invoice credit all at once.

These fields are maintained by the system from the open invoices.

Vinay Kamboj