Local Formula for Curvature