An Application of ODE in Economics and Finance