Haven't seen anything online but as a start, maybe set it up as a rough algebraic equation?
In this example we have a Party (P) and 3 CR 1/2 creatures up against 3 CR 1 creatures:
P + 3CR1/2 vs. 3CR1
subtract 3CR1/2 from each side and you get P facing 3CR1/2 for calculating difficulty
- OR -
Use the Solo Monster Challenge Rating table from Xanathar's (p88) and step down 2 or 3 CRs from the Party of 4 column.
That (maybe) gives us some rough equivalencies:
PC level = monster CR
1 = 1/8
2 = 1/2
3 = 1
4 = 2
etc
- OR -
The whole difficulty calculation is a bit wonky anyway, so winging it works, too. Some fights just become easier or harder by chance and not every battle needs to achieve "balance" to be fun and memorable.