How to choose the propeller size

I am wondering if there are any formulas for choosing size of prop.