\documentclass{article}
\usepackage{xfp}
\usepackage[english]{babel}
%\usepackage{siunitx}
\usepackage{booktabs,multicol,multirow}
\makeatletter
\def\avgthree#1#2#3{\fpeval{(#1+#2+#3)/3}}
\def\valagre#1#2#3{\fpeval{(#1*#2)+#3}}
\makeatother
\newcommand{\tiempo}{2}\newcommand{\tr}{6}\newcommand{\costo}{2}
\newcommand{\tiempotwo}{3}\newcommand{\trtwo}{5}\newcommand{\costotwo}{4}
\newcommand{\tiempothree}{2.5}\newcommand{\trthree}{4}\newcommand{\costothree}{1.98}
\newcommand{\benifCEE}{0.26}
\newcommand{\pesoone}{\fpeval{round(\avgthree{(\tiempo)}{(\tr)}{(\costo)},2)}}
\newcommand{\pesotwo}{\fpeval{round(\avgthree{(\tiempotwo)}{(\trtwo)}{(\costotwo)},2)}}
\newcommand{\pesothree}{\fpeval{round(\avgthree{(\tiempothree)}{(\trthree)}{(\costothree)},2)}}
\newcommand{\vaone}{\fpeval{round(\valagre{(\pesoone)}{(\benifCEE)}{(\costo)},2)}}
\newcommand{\vatwo}{\fpeval{round(\valagretwo{(\pesotwo)}{(\benifCEE)}{(\costotwo)},2)}}
\newcommand{\vathree}{\fpeval{round(\valagrethree{(\pesothree)}{(\benifCEE)}{(\costothree)},2)}}
\begin{document}
In table \ref{added value process} it shows
\begin{table}[!h]
\begin{tabular}{|l|c|c|c|c|c|c|}\midrule
Proceso&tiempo&T\_retraso&costo&peso&beneficio&VAgre\\\midrule
Abastec.& \tiempo\ & \tr\ & \costo\ & \pesoone\ &\benifCEE & \vaone\\\midrule
Prep. & \tiempotwo & \trtwo & \costotwo & \pesotwo & \benifCEE & \vatwo \\\midrule
Calibr. & \tiempothree\ & \trthree\ & \costothree\ & \pesothree\ &\benifCEE & \vathree\\\midrule
\end{tabular}\\
\caption{Added value of process}
\label{added value process}
\end{table}
\end{document}
This .tex file print the table but give error. Can anybody help me with that.
\valagretwo
is not defined. And it isn't