On line 1351 calculate expected adventures from spleen usage.
You calculate the number of items usable by spleen remaining, modulo 4.
expec_adv += ((spleen_limit() - my_spleen_use()) % 4 * 1.88);
Modulo returns the remainder though, I'm pretty sure that what you meant was:
expec_adv +=...