Invariant algebraic surfaces and hopf bifurcation of a finance model