How to do power analysis

#1
I want to do power analyses prior doing statistical tests on data to assess for the power it would yield. It mostly is survival data. I want to use Cox etc. What will you recommend, how to perform these?