Let's skip (but still calculate) loop #3 to #7 and show the last significant loop:
$o .= "Subtotal cashflow $vtot Euros, subtotal $eqtot equity, and cummulative profit of $protot.";
$o .= "
After that your former 100 Euros can't be squeezed out much anymore.
So, each banks lists then:
Copyright 2007-2016, 2020 © by René K. Müller <firstname.lastname@example.org>
Illustrations and graphics made with Inkscape, GIMP and Tgif