Figures use the cash view: maintenance is counted when it is approved (approval month). Expenses use the expense date month. Opening balance is the running total at the start of the selected month.
sql/migration_society_fund.sql (or reinstall schema) and set the opening balance in Admin → Society fund.