Add calculateX function.