Generalized Quadrature Formula for Convex Functions