Green's function approach to calculate spin injection in quantum dot