Enter today's totals and the goals, and this finds the lowest-calorie way to close the gap without going over the calorie goal.
This only controls the protein and calcium goals. The per-food max amounts and the calorie goal are always respected.