#Compounds including fee calculation

I wanted to know what number of compounds I should do given static APR and some fees. So I created a google sheet to make it somewhat more understandable and see what happens. Maybe some of you find it useful!

You can input values in the colored cells, I think the compound fee is around 1UST but it depends on whatever contract route you take so it’s a variable. The compound effect quickly becomes negligent in most cases however depending on the balance amount in LP a change<1% may still result in a return worth the time.

The formula for expected value is based on this: