What do I need in order to calculate the best size pump to buy for my system ?

Current pump is a 1.5hp.
Filter is DE - size ?
PVC Size ?
21K gallon in ground pool.

Do I need anything other than the filter / PVC sizes ?

I'll be converting to salt, i'm sure that needs to be factored in as well.