Can you really boil down all financial decisions to an algorithm?
For example, should I pay off a low-interest mortgage earlier with higher monthly payments, or should I invest each marginal dollar in a low-cost index fund?
There's certainly a psychological benefit (for some people) to have the mortgage paid off; it's one less bill to keep track of, but of course, over a long period of time such as a 30 year mortgage, it's quite possible that it'd appreciate more than your home (plus mortgage interest) will.
Or another question I see asked a lot: Should I take a year off work in my 20s to travel abroad, not knowing how hirable I may be in twelve months, or how the state of the economy might be for hiring early career individuals?
It seems half science and half art to me. You can graph and show what decision X vs Y will look like for your finances, showing which will leave you with more dollars in old age, but I do not think that is the difficult question for younger savers today. They wonder, is this marginal dollar I have more valuable spent on an experience today, or should it be invested for tomorrow? It's the opportunity cost of saving.
One of your most valuable assets is time, and enjoying the present sufficiently (but not gratuitously) is important for a balanced life. Saving too much or too little will lead to serious imbalances either earlier or later in life. Maybe an algorithm can hint you are savings are too low, or too high, but it can't tell you exactly what to do.