The bank calculates the monthly average balance by adding the end-of-day account balance for all days of the month and dividing them by the number of days.