I think I found a bug in your calculations.
I don't believe the calculator takes into effect LB digimon.
Granted I know it wouldn't be smart to use LB digimon as food but for the sake of no bugs I thought i'd bring it up.
currently you get a max level for a given rarity in a switch statement. However the switch statement doesn't take into effect if the digimon is LB and gives only is base max level.
Please correct me if I am wrong or missing something.
Edit: I just tested on the calculator
Rare: Grankuwagamon has a max base level of 30 but can be LB 4 times making its very max level 50
Upon further reflection I feel like this use case is outside the scope of the calculator because the its trying to find the most effective cost to level up and the cost of LB any digimon for food makes it prohibitive
Side Note: The calculator is awesome