Here's an older SN discussion that wrestles with this issue.
reply
These calculations would make a great addition to coordinator software. E.g. sparrow could warn when utxos are at risk in the future and prompt a consolidation process when fees are low
reply
Great tool, thanks!
reply
Thank you for sharing this information