You could just have this in a table, perform a query to get min and max and just display the results of the queries. Even a temp table.
Recently I did an accounting app and for the checks
$stmt = $this->db->select("SELECT SUM(deposit) AS depsum FROM checks Where isclr = 0", array(), \PDO::FETCH_ASSOC);
foreach ($stmt as $row) {
$depsum = $row['depsum'];
}
Another query was done for withdrawals, then I could add / substract as necessary.
You could do something like that (may even require 2 queries) one for min one for max. Just a thought.