Andy Murray will play David Ferrer in the Miami Masters final, and if he wins he'll be the new world number two.