If I understand this correctly I think the following covers what you describe:
Originally Posted by harold
Though I have my doubts about the interest rates, I would have thought they
function EndOfMonthProc(balance, type, MinBalance)
should be annual rates paid monthly in which they should be:
1+0.04/12, 1+0.03/12, and 1+0.05/12.