Suppose an individual partakes in some mixture of short term trading and long term investing. Is there a multivariate formula that expresses under what conditions (average/variance of time in a position, short/long term capital gains rate, etc.) FIFO will result in lower taxes than LIFO, and vice-versa?
I have found several intuitive explanations of FIFO and LIFO, a few examples worked out by hand, and lots of rule-based opinions, but I haven't been able to find a formula that generalizes the decision.