Anxiety and Finishing

So I have anxiety and depression and am sexually active. It has been bothering me that even though I think I experience great sex and it feels amazing usually, that I can’t finish. I have looked up online that it can be because of certain medications (which could be very true for me), and not being comfortable enough and able to relax during sex (also me). I was just wondering what other people thought, if anyone has experiences with this, and if there can be any advice or guidance given!