We consider a definable map germ \((f,g):(\mathbb {R}^n,0) \rightarrow (\mathbb {R}^2,0)\) . Under some conditions on f and g, we establish Lê-Greuel-type formulas; namely, we relate the following quantities: \(\begin{aligned} & \chi \left( \{f=\alpha \} \cap \{g=\delta \} \cap B_\varepsilon ^n \right) ,\\ & \chi \left( \{f=\alpha \} \cap \{g\ge \delta \} \cap B_\varepsilon ^n \right) -\chi \left( \{f=\alpha \} \cap \{g\le \delta \} \cap B_\varepsilon ^n \right) , \end{aligned}\) where \((\alpha ,\delta )\) is a regular value of (f, g) and \(0< \vert (\alpha ,\delta ) \vert \ll \varepsilon \ll 1\) , to Poincaré–Hopf indices of appropriate vector fields. Our method is based on Lagrange multipliers and some polar techniques. We provide a large class of weighted homogeneous mappings for which our conditions are satisfied.