calc: fix substituteInPlace call
this code has moved in another file so we need to adapt our substituteInPlace
authored by Et7f3 and committed by GitHub 2 years ago b0b04e6b 8a0223ec